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

538


What command would you use to check how much memory is being used by linux?

540


What is the pwd command?

560


What are the commands in linux?

521


What is bash history linux?

527






Why ms dos is used?

590


You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?

492


Which command is used to compare the files?

485


State and explain about features of UNIX?

564


What is command line in unix?

503


How does diff command work?

501


What is kill 9 in linux?

570


What does pwd mean in linux?

539


Why is linux cpu usage so high?

531


What does make clean command do?

514