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 / manoj samtani

iptables -I INPUT -s 172.168.0.1 -p tcp --dport 80 -d 192.168.0.2 -j ACCEPT

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find the linux version?

507


What is the command to calculate the size of a folder?

516


Find command can search for files by

546


What is an os command?

564


What signal is ctrl c?

516






What does umask 077 mean?

544


What would be the result of issuing the command cat phonenos?

508


What does chmod 777 do?

589


How does case sensitivity affect the way you use commands?

657


The ‘logout’ built in command is used to

764


How do I permanently delete linux history?

528


What is the difference between kill and kill in linux?

767


What is linux load average?

592


What are the mv command options?

467


What does mkdir do in linux?

528