Problem with routing in vpn connection

This forum is for general conversation and user-user networking.
Post Reply
marcink
OpenVpn Newbie
Posts: 1
Joined: Tue Nov 21, 2017 12:24 pm

Problem with routing in vpn connection

Post by marcink » Tue Nov 21, 2017 12:31 pm

Hello all,

I've some configuration that was done before me and there is a problem with connectivity:
I can't ping or access ie servers 10.1.10.2 10.1.10.5, 10.1.5.2.

From the openvpn server I can ping them but from the client connected with vpn it's impossible. I can reach the vpn host but not beyond it.
Below is the config, routing etc...
What can be the problem?

Server routes:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.1.1.1 0.0.0.0 UG 0 0 0 eth0.10
10.0.1.0 * 255.255.255.0 U 0 0 0 eth1.110
10.1.1.0 * 255.255.255.0 U 0 0 0 eth0.10
10.1.2.0 * 255.255.255.0 U 0 0 0 eth0.20
10.1.3.0 * 255.255.255.0 U 0 0 0 eth0.30
10.1.4.0 * 255.255.255.0 U 0 0 0 eth0.40
10.1.7.0 * 255.255.255.0 U 0 0 0 eth0.70
10.1.8.0 * 255.255.255.0 U 0 0 0 eth0.80
10.1.9.0 * 255.255.255.0 U 0 0 0 eth0.90
10.1.10.0 * 255.255.255.0 U 0 0 0 eth0.200
10.1.11.0 * 255.255.255.0 U 0 0 0 eth0.11
10.1.12.0 * 255.255.255.0 U 0 0 0 eth0.12
10.1.13.0 * 255.255.255.0 U 0 0 0 eth0.13
10.1.14.0 * 255.255.255.0 U 0 0 0 eth0.14
10.1.21.0 * 255.255.255.224 U 0 0 0 eth0.21
10.1.23.0 * 255.255.255.224 U 0 0 0 eth0.23
10.1.24.0 * 255.255.255.240 U 0 0 0 eth0.24
10.1.25.0 * 255.255.255.128 U 0 0 0 eth0.25
10.1.26.0 * 255.255.255.128 U 0 0 0 eth0.26
10.1.27.0 * 255.255.255.128 U 0 0 0 eth0.27
10.1.81.0 * 255.255.255.0 U 0 0 0 br0
10.1.123.0 * 255.255.255.0 U 0 0 0 eth0.123
10.1.202.0 * 255.255.255.128 U 0 0 0 eth0.202
10.1.202.128 * 255.255.255.128 U 0 0 0 eth0.201
10.1.203.0 * 255.255.255.224 U 0 0 0 eth0.203
10.1.204.0 * 255.255.255.224 U 0 0 0 eth0.204
10.1.232.0 * 255.255.255.0 U 0 0 0 eth0.232
10.1.243.0 * 255.255.255.128 U 0 0 0 eth0.243
10.1.244.0 * 255.255.255.192 U 0 0 0 eth0.244
10.1.245.0 * 255.255.255.248 U 0 0 0 eth0.245
10.1.248.0 * 255.255.255.192 U 0 0 0 eth0.248
10.1.249.0 * 255.255.255.192 U 0 0 0 eth0.249
10.1.251.0 * 255.255.255.0 U 0 0 0 eth0.251
172.16.9.0 172.16.9.2 255.255.255.0 UG 0 0 0 tun1
172.16.9.2 * 255.255.255.255 UH 0 0 0 tun1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1.2
192.168.5.0 * 255.255.255.0 U 0 0 0 eth1.5
192.168.12.0 * 255.255.255.0 U 0 0 0 eth1.10
192.168.13.0 * 255.255.255.0 U 0 0 0 eth1.30
192.168.20.0 * 255.255.255.0 U 0 0 0 eth1.20
192.168.75.0 * 255.255.255.0 U 0 0 0 eth1.75
192.168.104.0 * 255.255.248.0 U 0 0 0 eth1.104
192.168.112.0 * 255.255.252.0 U 0 0 0 eth1.112
192.168.121.0 192.168.121.2 255.255.255.0 UG 0 0 0 tun0
192.168.121.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.240.0 * 255.255.255.224 U 0 0 0 eth1.240

Client routes:
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 ens33
10.1.1.3 10.1.81.3 255.255.255.255 UGH 0 0 0 tap0
10.1.5.2 10.1.81.3 255.255.255.255 UGH 0 0 0 tap0
10.1.10.2 10.1.81.3 255.255.255.255 UGH 0 0 0 tap0
10.1.81.0 * 255.255.255.0 U 0 0 0 tap0
10.1.202.7 10.1.81.3 255.255.255.255 UGH 0 0 0 tap0
192.168.1.0 * 255.255.255.0 U 0 0 0 ens33

Srv network cfg:
br0 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.81.3 Bcast:10.1.81.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42600 errors:0 dropped:0 overruns:0 frame:0
TX packets:284 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2240884 (2.1 MiB) TX bytes:23832 (23.2 KiB)

eth0 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179151704 errors:26 dropped:7636850 overruns:0 frame:0
TX packets:28015127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:59779527746 (55.6 GiB) TX bytes:292389537149 (272.3 GiB)

eth1 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:206218013 errors:0 dropped:0 overruns:0 frame:0
TX packets:20042559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:288791517450 (268.9 GiB) TX bytes:587305827663 (546.9 GiB)

eth0.10 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.1.3 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:85491926 errors:0 dropped:0 overruns:0 frame:0
TX packets:2726523 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41153935746 (38.3 GiB) TX bytes:648678443 (618.6 MiB)

eth0.11 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.11.3 Bcast:10.1.11.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:617428 errors:0 dropped:0 overruns:0 frame:0
TX packets:2063 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34301840 (32.7 MiB) TX bytes:403648 (394.1 KiB)

eth0.12 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.12.3 Bcast:10.1.12.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509592 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25479600 (24.2 MiB) TX bytes:920 (920.0 B)

eth0.13 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.13.3 Bcast:10.1.13.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1033288 errors:0 dropped:0 overruns:0 frame:0
TX packets:20007 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:76940371 (73.3 MiB) TX bytes:4390533 (4.1 MiB)

eth0.14 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.14.3 Bcast:10.1.14.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3185581 errors:0 dropped:2 overruns:0 frame:0
TX packets:2532 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:171105571 (163.1 MiB) TX bytes:391545 (382.3 KiB)

eth0.20 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.2.3 Bcast:10.1.2.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1146257 errors:0 dropped:0 overruns:0 frame:0
TX packets:33768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90960479 (86.7 MiB) TX bytes:6773217 (6.4 MiB)

eth0.21 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.21.3 Bcast:10.1.21.31 Mask:255.255.255.224
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1093593 errors:0 dropped:0 overruns:0 frame:0
TX packets:17703 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:80492651 (76.7 MiB) TX bytes:2138517 (2.0 MiB)

eth0.23 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.23.3 Bcast:10.1.23.31 Mask:255.255.255.224
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1584493 errors:0 dropped:0 overruns:0 frame:0
TX packets:3486 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:115595288 (110.2 MiB) TX bytes:201248 (196.5 KiB)

eth0.24 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.24.3 Bcast:10.1.24.15 Mask:255.255.255.240
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:534145 errors:0 dropped:0 overruns:0 frame:0
TX packets:1783 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27905647 (26.6 MiB) TX bytes:355037 (346.7 KiB)

eth0.25 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.25.3 Bcast:10.1.25.127 Mask:255.255.255.128
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1071464 errors:0 dropped:0 overruns:0 frame:0
TX packets:3095 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65808972 (62.7 MiB) TX bytes:644522 (629.4 KiB)

eth0.26 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.26.3 Bcast:10.1.26.127 Mask:255.255.255.128
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:517858 errors:0 dropped:0 overruns:0 frame:0
TX packets:843 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26178485 (24.9 MiB) TX bytes:144131 (140.7 KiB)

eth0.27 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.27.3 Bcast:10.1.27.127 Mask:255.255.255.128
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1265663 errors:0 dropped:0 overruns:0 frame:0
TX packets:9272 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64151048 (61.1 MiB) TX bytes:1779164 (1.6 MiB)

eth0.30 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.3.3 Bcast:10.1.3.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:673076 errors:0 dropped:0 overruns:0 frame:0
TX packets:1241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39153054 (37.3 MiB) TX bytes:242352 (236.6 KiB)

eth0.40 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.4.3 Bcast:10.1.4.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1067523 errors:0 dropped:0 overruns:0 frame:0
TX packets:6949 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:68793873 (65.6 MiB) TX bytes:9632358 (9.1 MiB)

eth0.70 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.7.3 Bcast:10.1.7.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1335826 errors:0 dropped:0 overruns:0 frame:0
TX packets:32233 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:121193252 (115.5 MiB) TX bytes:5543823 (5.2 MiB)

eth0.80 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.8.3 Bcast:10.1.8.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1239151 errors:0 dropped:0 overruns:0 frame:0
TX packets:296903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1978681657 (1.8 GiB) TX bytes:27494275 (26.2 MiB)

eth0.81 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:509683 errors:0 dropped:0 overruns:0 frame:0
TX packets:986 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25492520 (24.3 MiB) TX bytes:121956 (119.0 KiB)

eth0.90 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.9.3 Bcast:10.1.9.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:514305 errors:0 dropped:0 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25964440 (24.7 MiB) TX bytes:23117 (22.5 KiB)

eth0.123 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.123.3 Bcast:10.1.123.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1415913 errors:0 dropped:0 overruns:0 frame:0
TX packets:89543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:93736399 (89.3 MiB) TX bytes:18708028 (17.8 MiB)

eth0.200 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.10.3 Bcast:10.1.10.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13106089 errors:0 dropped:0 overruns:0 frame:0
TX packets:10948970 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3854782522 (3.5 GiB) TX bytes:7981164087 (7.4 GiB)

eth0.201 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.202.131 Bcast:10.1.202.255 Mask:255.255.255.128
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:518320 errors:0 dropped:0 overruns:0 frame:0
TX packets:7607 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30529357 (29.1 MiB) TX bytes:2329040 (2.2 MiB)

eth0.202 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.202.3 Bcast:10.1.202.127 Mask:255.255.255.128
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24736453 errors:0 dropped:205 overruns:0 frame:0
TX packets:13765148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8722084608 (8.1 GiB) TX bytes:283673511900 (264.1 GiB)

eth0.203 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.203.3 Bcast:10.1.203.31 Mask:255.255.255.224
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509604 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25480200 (24.2 MiB) TX bytes:920 (920.0 B)

eth0.204 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.204.3 Bcast:10.1.204.31 Mask:255.255.255.224
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:601029 errors:0 dropped:0 overruns:0 frame:0
TX packets:11047 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36770260 (35.0 MiB) TX bytes:2124341 (2.0 MiB)

eth0.232 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.232.3 Bcast:10.1.232.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509591 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25479550 (24.2 MiB) TX bytes:920 (920.0 B)

eth0.243 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.243.3 Bcast:10.1.244.127 Mask:255.255.255.128
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509591 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25479550 (24.2 MiB) TX bytes:920 (920.0 B)

eth0.244 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.244.3 Bcast:10.1.244.63 Mask:255.255.255.192
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509591 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25479550 (24.2 MiB) TX bytes:962 (962.0 B)

eth0.245 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.245.3 Bcast:10.1.245.7 Mask:255.255.255.248
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509591 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25479550 (24.2 MiB) TX bytes:920 (920.0 B)

eth0.248 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.248.3 Bcast:10.1.248.63 Mask:255.255.255.192
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:526576 errors:0 dropped:0 overruns:0 frame:0
TX packets:1095 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27738580 (26.4 MiB) TX bytes:259435 (253.3 KiB)

eth0.249 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.249.3 Bcast:10.1.249.63 Mask:255.255.255.192
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:509591 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25479550 (24.2 MiB) TX bytes:920 (920.0 B)

eth0.251 Link encap:Ethernet HWaddr 00:50:56:99:51:cc
inet addr:10.1.251.3 Bcast:10.1.251.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:51cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:544201 errors:0 dropped:0 overruns:0 frame:0
TX packets:32057 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28080080 (26.7 MiB) TX bytes:2475146 (2.3 MiB)

eth1.2 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.2.13 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2110830 errors:0 dropped:0 overruns:0 frame:0
TX packets:55306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:103125834 (98.3 MiB) TX bytes:3110659 (2.9 MiB)

eth1.5 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.5.3 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:852 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39192 (38.2 KiB) TX bytes:920 (920.0 B)

eth1.10 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.12.3 Bcast:192.168.12.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2351738 errors:0 dropped:0 overruns:0 frame:0
TX packets:398043 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:371887815 (354.6 MiB) TX bytes:3767930089 (3.5 GiB)

eth1.20 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.20.3 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:194529 errors:0 dropped:0 overruns:0 frame:0
TX packets:194396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21598999 (20.5 MiB) TX bytes:25656978 (24.4 MiB)

eth1.30 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.13.3 Bcast:192.168.13.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:598998 errors:0 dropped:0 overruns:0 frame:0
TX packets:20415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:72309223 (68.9 MiB) TX bytes:3911846 (3.7 MiB)

eth1.75 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.75.3 Bcast:192.168.75.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:496 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22816 (22.2 KiB) TX bytes:920 (920.0 B)

eth1.104 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.104.3 Bcast:192.168.111.255 Mask:255.255.248.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20090256 errors:0 dropped:0 overruns:0 frame:0
TX packets:19374317 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:276287288292 (257.3 GiB) TX bytes:583505211959 (543.4 GiB)

eth1.110 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:10.0.1.151 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:920 (920.0 B)

eth1.112 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.112.3 Bcast:192.168.115.255 Mask:255.255.252.0
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1986 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:93628 (91.4 KiB) TX bytes:1648 (1.6 KiB)

eth1.240 Link encap:Ethernet HWaddr 00:50:56:99:cd:d2
inet addr:192.168.240.3 Bcast:192.168.240.31 Mask:255.255.255.224
inet6 addr: fe80::250:56ff:fe99:cdd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:920 (920.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:971909 errors:0 dropped:0 overruns:0 frame:0
TX packets:971909 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11273131391 (10.4 GiB) TX bytes:11273131391 (10.4 GiB)

tap0 Link encap:Ethernet HWaddr ae:b8:71:d8:95:17
inet6 addr: fe80::acb8:71ff:fed8:9517/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:3303 errors:0 dropped:0 overruns:0 frame:0
TX packets:39555 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:322082 (314.5 KiB) TX bytes:2537118 (2.4 MiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.121.1 P-t-P:192.168.121.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:6592 errors:0 dropped:0 overruns:0 frame:0
TX packets:5350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:437516 (427.2 KiB) TX bytes:2896828 (2.7 MiB)

tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:172.16.9.1 P-t-P:172.16.9.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


openvpn Server.conf:

local 10.1.1.3
port 5002
proto udp
dev tap0

ca ca.crt
cert server.crt
key server.key
crl-verify crl.pem

dh dh1024.pem
ifconfig-pool-persist ipp.bridge.txt
management 127.0.0.1 7508 haslo.txt
server-bridge 10.1.81.3 255.255.255.0 10.1.81.100 10.1.81.200

#push "route 10.1.1.2 255.255.255.255"
#push "route 10.1.1.4 255.255.255.255"
push "route 10.1.1.3 255.255.255.255"
push "route 10.1.10.2 255.255.255.255"
push "route 10.1.202.7 255.255.255.255"
push "route 10.1.5.2 255.255.255.255"
push "route 10.1.81.0 255.255.255.255"

push "dhcp-option DNS 10.1.10.2"

client-to-client
client-config-dir /etc/openvpn/ccd_bridge

keepalive 10 120

#comp-lzo

persist-key
persist-tun

status status_bridge.log 300
status-version 2

log /etc/openvpn/openvpn_bridge.log
log-append /etc/openvpn/openvpn_bridge.log

verb 3

;mute 30


openvpn Client.conf:
tls-client

dev tap
proto udp

#remote 10.1.1.3 5002
remote ip.ip.ip.ip 5002

#ip-win32 dynamic lease-time 10000

# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite

nobind

# Try to preserve some state across restarts.
persist-key
persist-tun


ca ca_bridge.crt

cert tv_mkrzyzanowski.crt
key tv_mkrzyzanowski.key

ns-cert-type server

#comp-lzo yes
#push "comp-lzo no"
verb 5
pull

log /var/log/openvpn_bridge.log
#log "C:\\Users\\marci\\OneDrive\\Documents\\openvpn_bridge.log"
#mtu-test
#tun-mtu 1500
#tun-mtu-extra 32
#mssfix 1450

################################
#tun-mtu 1500
#tun-mtu-extra 32
#mssfix 750
#fragment 1450
#keepalive 5 10
#ping 1
#verb 5
#link-mtu 1573
####################
#route-method exe
#route-delay 2
#route 10.1.1.2 255.255.255.255
#route 10.1.8.8 255.255.255.255
#route 10.1.1.1 255.255.255.255
#route 10.1.7.7 255.255.255.255
#route 10.1.5.2 255.255.255.255
#route 10.1.10.5 255.255.255.255

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 3348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Problem with routing in vpn connection

Post by TinCanTech » Tue Nov 21, 2017 12:43 pm

How many ethernet ports .. ?

If you get completely stuck : tincanteksup <at> gmail

Post Reply