help with Static Key Mini-HOWTO

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
silvamark
OpenVpn Newbie
Posts: 1
Joined: Wed Jan 05, 2011 2:30 am

help with Static Key Mini-HOWTO

Post by silvamark » Wed Jan 05, 2011 3:07 am

I'm testing the bare-bones point-to-point OpenVPN configuration.

Server configuration file
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
route ??????????????????

Client configuration file
remote myremote.mydomain
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
route 192.168.1.0 255.255.255.0

I'm able to ping 10.8.0.2 from the server and 10.8.0.1 from the client.
My OpenVPN server is on private LAN 192.168.1.0 ... with the gateway 192.168.1.1
It says
Suppose the OpenVPN server is on a subnet 192.168.4.0/24. Add the following to client configuration:

route 192.168.4.0 255.255.255.0

Then on the server side, add a route to the server's LAN gateway that routes 10.8.0.2 to the OpenVPN server machine (only necessary if the OpenVPN server machine is not also the gateway for the server-side LAN). Also, don't forget to enable IP Forwarding on the OpenVPN server machine.
How do i allow client to reach entire server subnet so i can ping back and forth from machines on subnet to client?
Can someone please help with an example of what to do?

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: help with Static Key Mini-HOWTO

Post by gladiatr72 » Wed Jan 05, 2011 11:34 am

[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

Post Reply