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
How do I run a command in linux?
What is clang format?
Explain about chmod options filename?
How often do you use grep command and how in Linux operating system?
How to write the output of a command to a file?
What are the basic commands in command prompt?
What command would you use to create an empty file without opening it to edit it?
How do I check memory usage on linux?
What does grep grep do?
What are grep patterns called?
What is the use of mv command in linux?
Who am I command in linux?
What is #!/ Bin sh?
How commands work in linux?
How do you execute more than one command or program from a single command line entry?