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
What is cd command used for?
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?
How do I run a command in linux?
Why is it called bash?
What is tty in linux command?
What does free command do in linux?
What is ulimit command?
What is p command?
How does diff command work?
What is sudo bash command?
Information technology is widely used in
What is cpu in linux?
What is option in linux command?
What is cmake in linux?
What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?