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

What is cd command used for?

736


You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?

801


How do I run a command in linux?

744


Why is it called bash?

664


What is tty in linux command?

709


What does free command do in linux?

776


What is ulimit command?

804


What is p command?

763


How does diff command work?

701


What is sudo bash command?

718


Information technology is widely used in

1653


What is cpu in linux?

749


What is option in linux command?

760


What is cmake in linux?

828


What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

739