Page 1 of 1
Re: Unable to reach the server network with net30
Posted: Fri Dec 23, 2011 8:49 am
by maikcat
openvpn server tun interface is .1 not .5 ..
Michael.
Re: Unable to reach the server network with net30
Posted: Fri Dec 23, 2011 11:04 pm
by janjust
when using 'net30' you need to specify the right net30 subnet; in general, a 'net30' client will be assign a block of address 172.16.1.4n - 172.16.1.4n+4 , where n=1,2,3,4,5,...
So for n=21 you would have
Code: Select all
172.16.1.84 - the net30 subnet address
172.16.16.85 - the virtual remote endpoint
172.16.1.86 - the actual client VPN address
172.16.1.84 - the net30 broadcast addresss
the virtual remote endpoint is needed, but cannot be pinged.
In both 'net30' and 'subnet' topology modes the VPN server needs to be in the same (server side) subnet as the VPN client. Thus, you cannot simply pick any subnet for the client (or any IP address), as the server will not be reachable. Hence , if you want to assign a client the address of 172.16.90.2 you would have to configure the server like
Code: Select all
mode server
ifconfig 172.16.1.1 172.16.1.2
ifconfig-pool 172.16.1.4 172.16.1.200
route 172.16.0.0 255.255.0.0
push "route 172.16.1.1"
push "route 172.16.0.0 255.255.0.0"
regular clients are assigned address from the pool, but "special" clients can be assigned address from 172.16.0.0 - 172.15.255.255
This is explained in more detail in my book.
Re: Unable to reach the server network with net30
Posted: Sat Dec 24, 2011 12:08 am
by janjust
first check: does it still work without the CCD file?
second check: what do 'ipconfig /all' and 'route print' report after the client connects (assuming it's a Windows client).
Re: Unable to reach the server network with net30
Posted: Sat Dec 24, 2011 10:13 pm
by janjust
rerun the server with the line
restored, reconnect the client with the CCD file renamed (so that the client receives 172.16.1.6), then try to ping the server again. If that works, post the output of 'ipconfig /all' and 'route print' again. If that also does not work (which I suspect) then check the firewalls on both ends to see which side is blocking (ICMP) traffic.
Re: Unable to reach the server network with net30
Posted: Tue Dec 27, 2011 8:24 am
by maikcat
remove these from your server config
ifconfig 172.16.1.1 172.16.1.2
route 172.16.0.0 255.255.0.0
push "route 172.16.1.1"
push "route 172.16.0.0 255.255.0.0"
mode server
topology net30
change your ccd file to:
ifconfig-push 172.16.0.10 172.16.0.9
reconnect and try to ping 172.16.0.1 from your client
Re: Unable to reach the server network with net30
Posted: Tue Dec 27, 2011 11:36 am
by maikcat
for clarity can you repost your server config?
also please post output of netstat -nr on your client.
Michael.
Re: Unable to reach the server network with net30
Posted: Wed Dec 28, 2011 8:50 am
by maikcat
your server config has
server 172.16.1.0 255.255.255.0
change your ccd file to:
ifconfig-push 172.16.1.10 172.16.1.9
reconnect your client
Michael.