Routeting lan

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
noelelsayed
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 01, 2023 7:51 pm

Routeting lan

Post by noelelsayed » Wed Feb 08, 2023 9:45 am

Hallo everyone,

I have a OpenVPN server on a Intel NUC.
I have a PC with a client to the server.
And olso a 4G router (Teltonica RUT955) with a client to the server.

now is it so that i can from te PC trou the vpn can come to the front door of the 4G router.
but i want to come in the network in the 4G router.
I have testet whit a puch route but then the 4G router dont fint it funny.
Now I make it with a route on the client. but it dont't works.

I whant with my pc from the 172.0.10.xx to 10.0.152.xx and to 10.0.151xx
And from the 10.0.152.xx whant i go to 10.0.151.xx
And from the 10.0.151.xx whant i go to 10.0.152.xx

Can sombody help me?

Noël



El_Sayed_server

port 1194
proto tcp4
dev tun

topology subnet
server 172.0.10.0 255.255.255.0

ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"

keepalive 10 120
cipher AES-256-CBC
data-ciphers AES-256-CBC
persist-key
persist-tun
verb 3

client-to-client

client-config-dir "C:\\Program Files\\OpenVPN\\config\\ccd"
ifconfig-pool-persist "C:\\Program Files\\OpenVPN\\log\\ip.txt" 0

# als ik puch routes aan zet dan lijk er op dat mijn teltonica 4g router totaal de weg kwijt is.
# kan ik niet meer inloggen of pingen lokaal.
# push "route 10.0.110.0 255.255.255.0"
# push "route 10.0.120.0 255.255.255.0"
# push "route 10.0.151.0 255.255.255.0"
# push "route 10.0.152.0 255.255.255.0"

# deze route geeft in de route tabel van de NUC 172.0.10.2 als gateway op alleen ken ik die niet de .2
route 10.0.152.0 255.255.255.0


Client PC

# El_Sayed
client
dev tun
proto tcp4
remote xxx 1194

resolv-retry infinite

persist-key
persist-tun

ca ca.crt
cert El_Sayed.crt
key El_Sayed.key

remote-cert-tls server

cipher AES-256-CBC
data-ciphers AES-256-CBC

route 10.0.151.0 255.255.255.0
route 10.0.152.0 255.255.255.0

auth-nocache
verb 3


4G router

# Aspergekachel_2
client
dev tun
proto tcp4
remote xxx 1194

resolv-retry infinite

persist-key
persist-tun

ca ca.crt
cert Aspergekachel_2.crt
key Aspergekachel_2.key

remote-cert-tls server

cipher AES-256-CBC
data-ciphers AES-256-CBC

route 10.0.151.0 255.255.255.0

auth-nocache
verb 3

noelelsayed
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 01, 2023 7:51 pm

Re: Routeting lan

Post by noelelsayed » Fri Feb 24, 2023 9:52 am

now i haved make a file in ccd map whit aspergekachechel_2.ovpn and .ccd
I don't know whisch i neded.
ans ther is in de line whit
"iroute 10.0.152.0 255.255.255.0"
But than its stil dont's works.
In wireshark it is anding on de Server (NUC).

Can sombody help me?

Greatings Noël

Post Reply