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 / vaithy

iptables -A INPUT -t filter -s 172.168.0.1 -p tcp --sport 80 -d 192.168.0.2 -j ACCEPT

Is This Answer Correct ?    25 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the linux directory commands along with the description?

507


What is the difference between kill and kill in linux?

768


How do I find my user id in linux?

516


Explain the ‘ls’ command in linux

555


How do I check dns entry?

558






What is gnu in linux?

531


What will happen when a system call is encountered in a user program?

1506


How do you insert comments in the command line prompt?

760


Who is unix command?

554


What are the command prompt commands?

524


How use linux command line?

528


What does && mean in linux?

561


What is the use of ls command?

491


What is cat command in linux?

528


What could possibly be the problem when a command that was issued gave a different result from the last time it was used?

533