LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to write this firewall rule ? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-write-this-firewall-rule-519637/)

naihe2010 01-15-2007 07:50 PM

how to write this firewall rule ?
 
I want to use havp in transparent mode, and I googled some advices.
I must write a firewall rule like:
Code:

iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/24 --dport 80 -j REDIRECT --to-port 8080
But I use pfctl in FreeBSD. how to write this?

freealx 01-15-2007 09:56 PM

Hi man,

Read that:
http://netbsd.gw.com/cgi-bin/man-cgi...NetBSD-current

and pay special attention to rdr translation ;-)

good luck


All times are GMT -5. The time now is 09:25 PM.