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
How use more command in linux?
What signal is ctrl c?
Explain about document formatting?
What is lsof command in linux?
What is ulimit in linux?
Brief about the command nn?
What is cpu in linux?
State and explain about features of UNIX?
How can we increase disk read performance in single command in Linux?
Which command is used to find what is in your home directory?
What is whois command in linux?
How do I start ms dos?
You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?
What is SFC command?
Explain about communication features in UNIX?