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 the command used for list the contents of your home directory, current directory and all subdirectories?
What do you mean by directory?
What does && mean in linux?
Where is command history stored in linux?
What is parallel ssh?
Why makefile is used in linux?
What is command to check ports running/used over local machine
What signal is ctrl c?
What are the 4 kinds of sentences with examples?
How do I find hostname in linux?
What is unix finger command?
What is finger in networking?
State and explain about features of UNIX?
What is git command?
Brief about the command kill PID?