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
What is s in permission linux?
Enlist some linux to file content commands?
Who command in linux?
How do I do a whois search?
How do I run a shell script?
What does && mean in bash?
What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?
What is free linux?
How do I get to root directory in linux?
How do I find previous commands in linux?
How do you sort cpu in top command?
What command can you use to make a tape archive file of a /home directory and send it to the /dev/tape device?
Which command is used to see the online manual?
Explain the ‘ls’ command in linux
What is ps command in linux?