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 find my user id in linux?
What is $$ in shell script?
What is an os command?
Is llvm a compiler?
What is llvm used for?
Describe the mknod command and when you’d use it.
How do I know my shell?
What is a simple command?
You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?
What daemon is used for scheduling of the commands?
Brief about finger username?
Explain the ‘ls’ command in linux
What is the default number of shell commands saved in the history list of .cshrc file?
How do I run a shell script?
Which command will show you free/used memory? Does free memory exist on linux?