Subject: routing from tun0 to ppp0
To: None <email@example.com>
From: Florian Stoehr <firstname.lastname@example.org>
Date: 11/19/2006 01:59:55
i have a machine with a normal ethernet interface on which
all packets of the machine itself pass out (here: fxp0),
as well as a tun0 (openvpn interface) and a ppp0 (another
now what i'd like to do is to make all traffic that arrives from
the openvpn tunnel -from various clients- at tun0 pass out
to the other tunnel ppp0.
openvpn uses 10.192/16 net.
my NAT config is
map ppp0 10.192.0.0/16 -> 0/32 portmap tcp/udp 30000:60000
map ppp0 10.192.0.0/16 -> 0/32
if i manually add a destination IP with "route add", this works
fine for the particular IP.
the machine has a default gateway set for the traffic generated
by itself and i cannot chang it to be the ppp0 ip.
now what to do here?