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
why context switching time should be minimum? How it depends on hardware support?
What is a makefile in c?
How do I check cpu usage?
How do I find previous commands in linux?
What is the difference between find and locate command in linux?
The command ‘umask -S’
Which command will show you free/used memory?
What is the difference between diff and cmp command in unix?
Brief about FTP hostname?
What does kill in linux?
How do I create a .txt file?
What is top command in linux?
What is the command to check cpu speed in linux?
Explain the working of command grouping?
Explain trap command of linux?