kern/107305: ipfw fwd doesn't seem to work

Timofej Dod hidden at 4you.lt
Fri Dec 29 03:30:16 PST 2006


>Number:         107305
>Category:       kern
>Synopsis:       ipfw fwd doesn't seem to work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 29 11:30:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Timofej Dod
>Release:        FreeBSD 6.0-RELEASE-p16
>Organization:
>Environment:
FreeBSD inforsanas 6.0-RELEASE-p16 FreeBSD 6.0-RELEASE-p16 #1: Wed Dec 27 12:29:13 EET 2006     hidden at inforsanas:/usr/obj/usr/src/sys/INFORSANAS  i386
>Description:
Trying to set up transparent proxy, have a rule:

fwd 212.59.27.254,1031 log logamount 100 tcp from any to any dst-port 80

# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 212.59.27.254 netmask 0xffffff00 broadcast 212.59.27.255
        inet 212.59.27.252 netmask 0xffffff00 broadcast 212.59.27.255
        ether 00:30:48:70:bd:d2
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

netcat not showing anything but there are lines in /var/log/security:

# nc -l 212.59.27.254 1031

kernel: ipfw: 999 Forward to 212.59.27.254:1031 TCP 212.59.27.249:60399 64.233.183.147:80 in via em0

counters on the rule also incrementing but seems packets are not being forwarded.
>How-To-Repeat:
Try to use ipfw fwd rule.
>Fix:
Not known.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list