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 pwd in linux command?
Explain the working of command grouping?
What is a make target?
Enlist some linux networking and troubleshooting commands?
Why ms dos is used?
What file type is a makefile?
How can I delete a file in linux?
what is the fastest way to enter a series of commands from the command-line in linux
How use linux command line?
What is vnc?
What does wc command do in unix?
The head command writes the how many lines of a file to screen?
How do I find previous commands in linux?
What is kill 9 in linux?
Is makefile a shell script?