kern/122963: [ipfw] tcpdump does not show packets redirected by 'ipfw fwd' on proper interface

n j nino80 at gmail.com
Tue Aug 13 09:40:02 UTC 2013


The following reply was made to PR kern/122963; it has been noted by GNATS.

From: n j <nino80 at gmail.com>
To: bug-followup at freebsd.org, zuborg at advancedhosters.com
Cc:  
Subject: Re: kern/122963: [ipfw] tcpdump does not show packets redirected by
 'ipfw fwd' on proper interface
Date: Tue, 13 Aug 2013 11:37:16 +0200

 --14dae94ee3b1c4da3004e3d0fd49
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hi,
 
 I just ran into this bug on 9.0. Likely present on 9.1 as well.
 
 Assume:
 em0 192.168.1.2
 em1 10.1.1.2
 
 # forward to port 80 port 8080 traffic going out via em1
 ipfw add 100 fwd 192.168.1.2:80 tcp from me 8080 to 10.1.80.80 out xmit em1
 
 # make sure the traffic goes via em1
 route add 10.1.80.80 10.1.1.1
 
 # expect to see outgoing packets
 tcpdump -i em1 host 10.1.80.80
 
 # but no packets seen
 nc -p 8080 10.1.80.80 31337
 
 
 Regards,
 -- 
 Nino
 
 --14dae94ee3b1c4da3004e3d0fd49
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><div><div><div><div><div>Hi,<br><br></div>I just ran into =
 this bug on 9.0. Likely present on 9.1 as well.<br><br></div>Assume:<br></d=
 iv><div>em0 192.168.1.2<br>em1 10.1.1.2<br></div><div><br></div><div># forw=
 ard to port 80 port 8080 traffic going out via em1<br>
 
 </div>ipfw add 100 fwd <a href=3D"http://192.168.1.2:80">192.168.1.2:80</a>=
  tcp from me 8080 to 10.1.80.80 out xmit em1<br><br></div><div># make sure =
 the traffic goes via em1<br></div>route add 10.1.80.80 10.1.1.1<br><br></di=
 v>
 
 <div># expect to see outgoing packets<br></div>tcpdump -i em1 host 10.1.80.=
 80<br><div><br># but no packets seen<br></div><div>nc -p 8080 10.1.80.80 31=
 337<br></div><div><br><br></div><div>Regards,<br>-- <br></div><div>Nino<br>
 
 </div></div>
 
 --14dae94ee3b1c4da3004e3d0fd49--


More information about the freebsd-ipfw mailing list