[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rephrased: Routing problem



I am not very good at expressing myself, I'll give it another shot.

Problem: How to add a route for the clients our internal network (192.168.1.0/24) to another network at 192.168.3.0/24.

The default gateway is set up with pf/nat and has three all-time interfaces, xl0,1,2 + tun0 over analog modem. There is also a VPN to 192.168.2.0. Everything works fine except for the above.

tun0 is brought up by ppp like:
connection:
 add 192.168.3.0/24 HISADDR

Then , I can only accees the 192.168.3.0 network from the gateway, not from internal clients located in 192.168.1.0.

The host at other end is nt4 RAS.

Ultimately, I want to add autodial for tun0 so that when any client requests an adress within 192.168.3.0 the link is brought up.

Right now I'm clueless.

Per olof



Network:

                192.168.3.0
                   tun0 (dynamic ip)
                     |
intranet------xl2--obsd3.2--xl0-----the Internet + vpn to 192.168.2.0
192.168.1.0          |
                    xl1
                    DMZ


Part of routing table when tun0 is up:

Internet:
Destination Gateway Flags Refs Use Mtu Interface
default (public-ip) UGS 5 8385 - xl0
127/8 127.0.0.1 UGRS 0 0 33224 lo0
127.0.0.1 127.0.0.1 UH 2 0 33224 lo0
172.16.1/24 link#2 UC 0 0 - xl1
192.168.1/24 link#3 UC 0 0 - xl2
192.168.3/24 192.168.3.179 UGS 0 0 1500 tun0
192.168.3.179 192.168.3.180 UH 1 0 1500 tun0
(public-ip) link#1 UC 0 0 - xl0
224/4 127.0.0.1 URS 0 0 33224 lo0



Encap:
Source Port Destination Port Proto SA(Address/Proto/Type/Direction)
192.168.2/24 0 192.168.1/24 0 0 217.215.7.177/50/use/in
192.168.1/24 0 192.168.2/24 0 0 217.215.7.177/50/require/ou




Visit your host, monkey.org