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 / venkat
Command:
iptables -i INPUT -t filter -p tcp -s 172.168.0.1 -d
192.168.0.2 --dport 80 -j ACCEPT
Description:
-i --> Match the INPUT or inbound
-t --> Table name here default is filter
-p --> Protocol
-s --> Source IP
-d --> Destination IP
--dport --> Port number
-j --> Condition.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What language is a makefile written in?
What does bash stand for?
How to root mirror in linux?
What is the use of cp p command?
What are the mv command options?
How do I clear terminal command history?
What are commands in grammar?
Does cp overwrite?
How many types of commands are there in linux?
What is the use of ls command?
How do I list directories in linux?
How do I clear bash history in linux?
How many interfaces(ethernet cards) are working using single command?
What is #!/ Bin sh?
What daemon is used for scheduling of the commands?