Hello.
I used freetz to create a new firmware with OpenVPN for my 7330 to connect the FB to a PBX using VPN.
I configured OpenVPN in client mode and it works properly.
From FB I can ping the PBX.
The weird thing is that SIP packet do not go through the tun0 interface but they go through the dsl interface.
I suppose there is some kind of policy routing in it.
How can I fix this?
Thanks
Routing
Ping
But SIP goes to eth0
The ping is OK
I used freetz to create a new firmware with OpenVPN for my 7330 to connect the FB to a PBX using VPN.
I configured OpenVPN in client mode and it works properly.
From FB I can ping the PBX.
The weird thing is that SIP packet do not go through the tun0 interface but they go through the dsl interface.
I suppose there is some kind of policy routing in it.
How can I fix this?
Thanks
Routing
Code:
root@fritz:/var/mod/root# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.180.1 0.0.0.0 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 0.0.0.0 255.255.255.255 UH 2 0 0 dsl
192.168.4.5 0.0.0.0 255.255.255.255 UH 2 0 0 dsl
194.243.192.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 lan
192.168.4.0 0.0.0.0 255.255.255.0 U 2 0 0 dsl
194.243.192.0 194.243.192.5 255.255.255.0 UG 0 0 0 tun0
192.168.189.0 0.0.0.0 255.255.255.0 U 0 0 0 guest
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lan
0.0.0.0 0.0.0.0 0.0.0.0 U 2 0 0 dsl
root@fritz:/var/mod/root# ip route list
192.168.180.1 dev dsl metric 2
192.168.180.2 dev dsl metric 2
192.168.4.5 dev dsl metric 2
194.243.192.5 dev tun0 src 194.243.192.6
192.168.178.0/24 dev lan src 192.168.178.1
192.168.4.0/24 dev dsl metric 2
194.243.192.0/24 via 194.243.192.5 dev tun0
192.168.189.0/24 dev guest src 192.168.189.1
169.254.0.0/16 dev lan src 169.254.1.1
default dev dsl metric 2
Ping
Code:
root@fritz:/var/mod/root# ping 194.243.192.1
PING 194.243.192.1 (194.243.192.1): 56 data bytes
64 bytes from 194.243.192.1: seq=0 ttl=64 time=43.583 ms
64 bytes from 194.243.192.1: seq=1 ttl=64 time=44.194 ms
But SIP goes to eth0
Code:
root@fritz:/var/mod/root# tcpdump -i eth0 host 194.243.192.1
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:37:46.050233 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:37:47.050306 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:37:49.050361 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:37:53.050485 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:37:57.050576 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:38:01.050916 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:38:05.051254 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:38:09.051307 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
17:38:13.051409 IP 192.168.4.59.55060 > 194.243.192.1.sip: SIP, length: 660
The ping is OK
Code:
root@fritz:/var/mod/root# tcpdump -i tun0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun0, link-type RAW (Raw IP), capture size 65535 bytes
17:43:55.244040 IP 194.243.192.1 > 194.243.192.6: ICMP echo request, id 18652, seq 1, length 64
17:43:55.244187 IP 194.243.192.6 > 194.243.192.1: ICMP echo reply, id 18652, seq 1, length 64
17:43:56.245339 IP 194.243.192.1 > 194.243.192.6: ICMP echo request, id 18652, seq 2, length 64
17:43:56.245504 IP 194.243.192.6 > 194.243.192.1: ICMP echo reply, id 18652, seq 2, length 64
17:43:57.246371 IP 194.243.192.1 > 194.243.192.6: ICMP echo request, id 18652, seq 3, length 64
17:43:57.246480 IP 194.243.192.6 > 194.243.192.1: ICMP echo reply, id 18652, seq 3, length 64
17:43:58.246271 IP 194.243.192.1 > 194.243.192.6: ICMP echo request, id 18652, seq 4, length 64
17:43:58.246380 IP 194.243.192.6 > 194.243.192.1: ICMP echo reply, id 18652, seq 4, length 64
Zuletzt bearbeitet: