Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2001 22:38:45 +0200 (EET)
From:      Maxim Sobolev <sobomax@freebsd.org>
To:        brian@freebsd.org
Cc:        stable@freebsd.org, net@freebsd.org
Subject:   ppp(8) + ip forwarding doesn't work anymore
Message-ID:  <200103232038.f2NKcjr00532@vic.sabbo.net>

next in thread | raw e-mail | index | archive | help
Hi,

I noticed that after upgrading to 4-BETA something goes wrong with ip
forwarding via ppp(8). I have a FreeBSD box (A) connected to Internet
via network interface and this system also has a modem for dial-in and
backup dial-up connection. Sometimes I need to route through this
modem traffic to/from only one specific host (B) on my internal
network, so I used the following command to do it and it worked like a
charm (50 is the first rule):

ppp.linkup:
!bg /sbin/ipfw add 50 fwd HISADDR ip from B to not 192.168.0.1/24

ppp.linkdown:
!bg delete 50

After upgrading to 4-BETA and consequently to 4-RC this doesn't work
anymore :(((. After a link is up I see this rule in my ipfw
configuration, see route to HISADDR in routing table, can ping
HISADDR  from A, but all packets from B are silently discarded (I see
count increase in `ipfw show', but ppp doesn't show any IP packets
going through). At the same time, I can get all packets from B and
other hosts routed through ppp by doing `route add default HISADDR'
after link is up, so obviously my configuration is OK. I suspect that
this has something to do with recent forwarding changes, but can't
tell more precisely.

It looks to me like a serious bug, that ought to be resolved before
4.3-RELEASE.

-Maxim
P.S. Yes, I have gateway_enable="YES" and "options IPFIREWALL_FORWARD"
on A.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103232038.f2NKcjr00532>