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
Suppose you try to delete a file using the rm command and the deletion fails. What could be the possible reason?
What the command used for list the contents of your home directory, current directory and all subdirectories?
What is mkdir m in linux?
What does chmod 777 do?
Which command puts a script to sleep untill a signal is recieved?
How do I run a .sh file in linux?
How can we increase disk read performance in single command in Linux?
Hi everyone i want to learn Devops in Hyderabad can anyone please suggest me best institute.
How do I find previous commands in linux?
What is llvm used for?
In order to display the last five commands you have entered using the fc command, you would type?
What is type command in linux?
What would be the result of issuing the command cat phonenos?
You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?
What is 9 in kill?