I want to built a fire wall using iptables. My condition is
" inbound to 192.168.0.2 with a port of 80 from
172.168.0.1 should accept"
Answer Posted / shailesh shinde
iptables -I INPUT -s 172.168.0.1 -p tcp --dport 80 -d
192.168.0.2 -j ACCEPT
iptables -A OUTPUT -m state --state Established,new,Related
-j accept
Both required
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does grep work in linux?
How do I run a bash script in linux?
How lilo is useful in linux?
What is the use of cp p command?
What is dos and its commands?
tell me something about linux commands.
What is the difference between diff and cmp command in unix?
How do I check memory usage on linux?
What does f mean linux?
How do I find the console in linux?
Why do we use cmake?
What are linux commands?
What is cd in cmd?
Explain about lpr filename?
Which daemon is used for scheduling of the commands?