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 / ganesh
iptables -A INPUT -s 172.168.0.1 -p tcp --dport 80 -j ACCEPT
AND
iptables -A INPUT -s 192.168.0.2 -p tcp --dport 80 -j REJECT
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is cpu core in linux?
What are the options of wc command?
How can I delete a file in linux?
What is bash history linux?
What are the 4 kinds of sentences with examples?
Who linux commands?
What is parallel ssh?
Explain about the command elm?
How do I clear bash history in linux?
Which command is used to compare the files?
What does in makefile do?
How often do you use grep command and how in Linux operating system?
What does && mean in linux?
How can I type in cmd?
What command can you use to make a tape archive file of a /home directory and send it to the /dev/tape device?