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?
How often do you use grep command and how in Linux operating system?
What is ps command in linux?
What does pwd mean in linux?
What is grep command?
What is build process?
What does cd do in linux?
What is bash history linux?
What does f mean linux?
Brief about the command kill PID?
If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?
What is the role of case sensitivity in affecting the way commands are used?
What are the commands in linux?
What the command used for list the contents of your home directory, current directory and all subdirectories?
Is cmake only for c++?