Gentoo Archives: gentoo-server

From: Kostko <kostko@××××××××××××.net>
To: gentoo-server@g.o
Subject: [gentoo-server] Routing between interfaces problem
Date: Tue, 02 Dec 2003 15:30:48
Message-Id: 3FCCB025.6010804@jweb-network.net
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Well, i have a problem setting up a vpn connection. The connection
5 itself works, but one of the routers doesn't want to forward traffic
6 between the two interfaces (vpn01 and eth1). The routing table seems
7 correct and the /proc/sys/net/ipv4/ip_forward is set to 1.
8
9 Routing table:
10 213.250.19.90 dev ppp0 proto kernel scope link src 193.77.XXX.XXX
11 192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.1
12 192.168.0.0/16 dev vpn01 proto kernel scope link src 192.168.0.1
13 127.0.0.0/8 via 127.0.0.1 dev lo scope link
14 default via 213.250.19.90 dev ppp0
15
16 And also, there are no firewall rules preventing the routing (i tried
17 flushing and it didn't help).
18
19 firt network:
20 subnet: 192.168.0.0/24
21 router ip (eth1): 192.168.0.1 netmask 255.255.255.0
22 router ip (vpn01): 192.168.0.1 netmask 255.255.0.0
23
24 second network:
25 subnet 192.168.1.0/24
26 router ip (eth0): 192.168.1.1 netmask 255.255.255.0
27 router ip (vpn01): 192.168.1.1 netmask 255.255.0.0
28
29 if i ping from router 1 to router 2 or lan behind it, it works. if i
30 ping from router 2 to router 1 it works, but i can't reach the lan
31 behind it. if i tcpdump eth1 and vpn01 on router 1 i see that the
32 packets are not getting forwarded from vpn01 to eth1 and reverse.
33
34
35 Regards,
36 Kostko.
37 - --
38 Kostko <kostko@××××××××××××.net>
39 JWeb-Network
40
41 -----BEGIN PGP SIGNATURE-----
42 Version: GnuPG v1.2.3 (GNU/Linux)
43 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
44
45 iD8DBQE/zLAlllbq6idCSBURAgoiAJ9MGy0qb3847VIVfpwSLnIYHvEVZwCfROcp
46 MAhtGIMgIe13158NndHP1CU=
47 =UbRP
48 -----END PGP SIGNATURE-----