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
Explain the linux ‘cd’ command options along with the description?
What is mask and umask in linux?
What is the gcc command?
What is the use of man command in linux?
What is the bash in linux?
Which command puts a script to sleep untill a signal is recieved?
How do I start ms dos?
How does mkdir work in linux?
How does diff command work?
How do you kill a process in linux?
What are linux commands useful?
What is clang format?
Why is linux cpu usage so high?
How can you copy lines into the buffer in command mode?
What Command used to lock user password?