Access to server from DSL modem

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

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

Post Reply
artsiom82
OpenVpn Newbie
Posts: 5
Joined: Fri Dec 09, 2011 1:42 am

Access to server from DSL modem

Post by artsiom82 » Tue Sep 27, 2016 9:50 pm

Hello everybody. About few days i`m trying to set my router
i have an openvpn server with white IP
i have 2 clients
client1(10.0.36.10) it is me
client2(10.0.36.14) is router(192.168.50.254) with openwrt and openvpn
router is connected to internet and via openvpn client to openvp server
in place where is router i have an adsl modem with dynamic ip(10.111.3.123) on wan
i want to have access to server(10.22.0.4) that i connect via adsl modem from client1
now i can ping router with openvpn
i can ping adsl modem lan ip(192.168.50.1)
i can ping adsl modem wan ip(10.111.3.123)
but i can`t ping modem wan gateway(10.111.0.1) and ip of server(10.22.0.4) i want connect to
client1 ccd

Code: Select all

ifconfig-push 10.0.36.10 10.0.36.9
push "route 10.0.36.0 255.255.255.0"
push "route 192.168.50.0 255.255.255.0"
push "route 10.22.0.0 255.255.255.0"
push "route 10.111.0.0 255.255.0.0"
client2 ccd

Code: Select all

#
ifconfig-push 10.0.36.14 10.0.36.13
push "route 10.0.36.0 255.255.255.0"
iroute 192.168.50.0 255.255.255.0
iroute 10.22.0.0 255.255.255.0
iroute 10.111.0.0 255.255.0.0
also i add route on adsl modem

Code: Select all

10.0.36.0 255.255.255.0 gateway 192.168.50.254
what can i do else?
Please help me

Post Reply