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 the export command used for?
How to know linux os is 32 bit or 64 bit?
How do you kill a process in linux?
Brief about the command ff?
What is nbtstat command?
What are the commands used in command prompt?
What could possibly be the problem when a command that was issued gave a different result from the last time it was used?
How will you suspend a running process and put it in the background?
What is phony in makefile?
How can we increase disk read performance in single command?
what is the fastest way to enter a series of commands from the command-line in linux
Explain difference between nfs soft and hard mouniting points?
What are the ms dos commands?
What the command used for list the contents of your home directory, current directory and all subdirectories?
Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.