Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how do you configure linux system as a router?

Answer Posted / mahendra yadav

iptables -I FORWARD -i eth0 -o eth1 -j ACCEPT

iptables -I FORWARD -i eth1 -o eth0 -j ACCEPT

vim /etc/sysctl.conf
net.ipv4.ip_forward = 1
:wq

/etc/init.d/iptables save

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find my user id in linux?

886


What is $$ in shell script?

920


What is an os command?

1033


Is llvm a compiler?

915


What is llvm used for?

1030


Describe the mknod command and when you’d use it.

1024


How do I know my shell?

916


What is a simple command?

1062


You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?

918


What daemon is used for scheduling of the commands?

945


Brief about finger username?

916


Explain the ‘ls’ command in linux

1027


What is the default number of shell commands saved in the history list of .cshrc file?

933


How do I run a shell script?

920


Which command will show you free/used memory? Does free memory exist on linux?

963