ipfw fwd

Chris Knipe savage at savage.za.org
Wed Feb 9 09:04:29 PST 2005


Lo all,

FreeBSD 4.11-STABLE, running ipfw2.

root at wsmd-core02:/home/cknipe# ifconfig vlan1
vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1496
        inet 198.19.0.33 netmask 0xffffffe0 broadcast 198.19.0.63
        ether 00:08:a1:7a:b1:44
        media: Ethernet autoselect (100baseTX)
        status: active
        vlan: 200 parent interface: rl0

ipfw2:
00400       0         0 allow tcp from 198.19.0.36 to any dst-port 80
00401      12       652 allow tcp from 198.19.0.35 to any dst-port 25
00402      13       668 fwd 198.19.0.36,3128 tcp from 198.19.0.32/27 to any 
dst-port 80
00403       2       120 fwd 198.19.0.35,25 tcp from 198.19.0.32/27 to any 
dst-port 25


However, packets that are forwarded, never connects to the destination where 
it is forwarded to.  And yes, I did check the obvious, everything is up and 
running....   Is there some sysctl magic or something required to make this 
work?  I can fwd without a problem to the SAME BOX, but I cannot seem to get 
it to work to fwd to remote machines.  In case someone is wondering, this is 
for transparent proxy / smtp servers.

--
Chris.





More information about the freebsd-ipfw mailing list