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

How often do you use grep command and how in Linux operating system?

531


What is cpu in linux?

524


What are system commands?

564


How do I check dns entry?

554


How do I permanently delete linux history?

525






How do you create a blank file in linux?

508


what do know about commands?

576


Explain difference between swap partition and swap file?

490


How do you limit memory usage for commands?

567


Does linux cp command overwrite?

582


How do I run a shell script?

503


can any one send me one project on linux ...?

2354


What are grep patterns called?

530


How do I find hostname in linux?

566


What are the basic dos commands?

546