Date: Fri, 26 Apr 2002 12:52:28 +0200 From: Ruben de Groot <fbsd-q@bzerk.org> To: freebsd-questions@freebsd.org Subject: Routing problem 2nd public IP (using pptp) Message-ID: <20020426125228.A15075@ei.bzerk.org>
next in thread | raw e-mail | index | archive | help
Trying to connect this machine (4.5-STABLE) to the internet using 2
public IP addresses.
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 213.84.67.7 --> 195.190.240.223 netmask 0xffffff00
Opened by PID 575
tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 213.84.67.8 --> 195.190.240.223 netmask 0xffffff00
Opened by PID 582
Looks ok, but I can only connect to the first (tun0) interface.
While pinging from another machine I let tcpdump listen on tun1:
tcpdump: listening on tun1
12:21:49.427878 130.161.221.138 > 213.84.67.8: icmp: echo request (DF)
12:21:50.422595 130.161.221.138 > 213.84.67.8: icmp: echo request (DF)
12:21:51.422480 130.161.221.138 > 213.84.67.8: icmp: echo request (DF)
So, packets coming in, but not going out. Meanwhile, on a terminal not
far away:
tcpdump: listening on tun0
12:25:14.433293 213.84.67.8 > 130.161.221.138: icmp: echo reply (DF)
12:25:15.430252 213.84.67.8 > 130.161.221.138: icmp: echo reply (DF)
12:25:16.429940 213.84.67.8 > 130.161.221.138: icmp: echo reply (DF)
So the echo-replies are leaving through interface tun0, with the IP
address of interface tun1. No wonder they never make it back.
How can I make sure that packets will use the right interface? I believe
this is a routing problem, so here's
mug# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 195.190.240.223 UGSc 2 1185 tun0
127.0.0.1 127.0.0.1 UH 0 4 lo0
195.190.240.223 213.84.67.7 UH 3 0 tun0
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020426125228.A15075>
