Hi,
I have a server with:
- one NIC (ale0) with IP 192.168.1.102
- 2 FIBS
- running openvpn and transmission (bittorrent) on FIB 1. (VPN IP is 10.10.13.210)
I expect all the transmission traffic to go over the tap0 interface and not see any traffic on ale0 with IP 10.10.13.210 (vpn).
tcpdump proves me wrong:
These are TCP RESET packets send to peers over the ale0 but they are supposed to be sent over the tap0!!! Am I doing something wrong? Are TCP reset packets supposed to be broadcasted or something on all interfaces?
I do not see anything wrong in the syslog. Is it a bug or a feature of TCP?
More info:
The commands I use to start the daemons:
I have a server with:
- one NIC (ale0) with IP 192.168.1.102
- 2 FIBS
- running openvpn and transmission (bittorrent) on FIB 1. (VPN IP is 10.10.13.210)
Code:
|---------------|
| |-- ale0 (192.168.1.102)
| FreeBSD 9.1 |
| 2 FIBS |
| |
| |-- tap0 (openvpn on FIB 1 10.10.13.210)
|---------------|
I expect all the transmission traffic to go over the tap0 interface and not see any traffic on ale0 with IP 10.10.13.210 (vpn).
tcpdump proves me wrong:
Code:
# tcpdump -nn -i ale0 host 10.10.13.210
09:36:36.892074 IP 10.10.13.210.51415 > 1.1.11.173.52449: Flags [R], seq 2085203014, win 0, length 0
09:36:37.344177 IP 10.10.13.210.51415 > 1.1.90.74.65156: Flags [R], seq 2816628297, win 0, length 0
09:36:37.438990 IP 10.10.13.210.30351 > 1.1.181.127.28575: Flags [R], seq 3842924655, win 0, length 0
09:36:37.526022 IP 10.10.13.210.51415 > 1.1.252.83.58814: Flags [R], seq 265210318, win 0, length 0
09:36:37.673292 IP 10.10.13.210.51415 > 1.1.248.8.53386: Flags [R], seq 2313023041, win 0, length 0
09:36:37.676229 IP 10.10.13.210.14310 > 1.1.109.39.12678: Flags [R], seq 3644214725, win 0, length 0
09:36:37.738994 IP 10.10.13.210.51415 > 1.1.188.160.50152: Flags [R], seq 224522817, win 0, length 0
09:36:38.286168 IP 10.10.13.210.51415 > 1.1.165.50.60590: Flags [R], seq 3222894287, win 0, length 0
09:36:38.305551 IP 10.10.13.210.51415 > 1.1.12.47.57376: Flags [R], seq 1047394120, win 0, length 0
09:36:38.385334 IP 10.10.13.210.51415 > 1.1.110.247.53719: Flags [R], seq 2571011398, win 0, length 0
These are TCP RESET packets send to peers over the ale0 but they are supposed to be sent over the tap0!!! Am I doing something wrong? Are TCP reset packets supposed to be broadcasted or something on all interfaces?
I do not see anything wrong in the syslog. Is it a bug or a feature of TCP?
More info:
# ifconfig
Code:
ale0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c319a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
ether 90:e6:ba:f3:30:6f
inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xc
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:cd:af:04:00
inet6 fe80::2bd:cdff:feaf:400%tap0 prefixlen 64 scopeid 0xd
inet 10.10.13.210 netmask 0xffffff00 broadcast 10.10.13.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 1931
# setfib 0 netstat -nr
Code:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGS 0 11164 ale0
127.0.0.1 link#12 UH 0 1275 lo0
10.10.13.0/24 link#13 U 0 4 tap0
10.10.13.210 link#13 UHS 0 0 lo0
192.168.1.0/24 link#7 U 0 36 ale0
192.168.1.102 link#7 UHS 0 0 lo0
# setfib 1 netstat -nr
Code:
# setfib 1 netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
0.0.0.0/1 10.10.13.25 UGS 0 427115 tap0 =>
default 192.168.1.1 UGS 0 187 ale0
127.0.0.1 link#12 UH 0 7 lo0
128.0.0.0/1 10.10.13.25 UGS 0 129183 tap0
10.10.13.0/24 link#13 U 0 161 tap0
10.10.13.25/32 192.168.1.1 UGS 0 556385 ale0
192.168.1.0/24 link#7 U 0 68 ale0
The commands I use to start the daemons:
Code:
setfib 1 /sbin/route add default 192.168.1.1
setfib 1 /usr/local/etc/rc.d/openvpn onestart
setfib 1 /usr/local/etc/rc.d/transmission onestart