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 run a command in linux?

554


What is clang format?

532


Explain about chmod options filename?

643


How often do you use grep command and how in Linux operating system?

539


How to write the output of a command to a file?

577






What are the basic commands in command prompt?

560


What command would you use to create an empty file without opening it to edit it?

574


How do I check memory usage on linux?

568


What does grep grep do?

521


What are grep patterns called?

536


What is the use of mv command in linux?

536


Who am I command in linux?

564


What is #!/ Bin sh?

552


How commands work in linux?

524


How do you execute more than one command or program from a single command line entry?

562