I am trying to set up a VPN server using Open VPN. I followed all the instructions here:
All seems to go well and I get no errors while running any of the commands. Info which may be useful:
- I have a Netgear router and connect to it (and access the web) via a wireless network card which is identified as wlan1
- Trying to follow the instructions in the link the best I could, my /etc/network/interfaces file is as follows:
auto lo br0
iface lo inet loopback
iface br0 inet static
iface wlan1 inet manual
up ip link set $IFACE up promisc on
down ip link set $IFACE down promisc off
- My static IP is therefore 192.168.1.33
I have generated all the keys and basically got to the point where clients should be able to connect, restarted my computer. I then have no wireless connectivity whatsoever... I have to change the above file back to what it was before to get the net back so I can type this. As well as that, I think there may be a problem with my server.conf file. Here it is:
I have made bold several lines. It is these I am unsure how to configure. On the first bolded line, which IP do I put? 192.168.1.33? And do I leave the <> or is that just an indicator as used in documentation and I should type the IP only?mode server
local <your.ip.addres.here> ## ip/hostname of server
port 1194 ## default openvpn port
dev tap0 ## If you need multiple tap devices, add them here
up "/etc/openvpn/up.sh br0 tap0 1500"
down "/etc/openvpn/down.sh br0 tap0"
#certificates and encryption
key server.key # This file should be kept secret
tls-auth ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
server-bridge 192.168.1.33 255.255.255.0 192.168.1.100 192.168.1.110
push "dhcp-option DNS your.dns.ip.here"
push "dhcp-option DOMAIN yourdomain.com"
max-clients 10 ## set this to the max number of clients that should be connected at a time
#log and security
keepalive 10 120
On the next bolded line I have as you can see replaced 192.168.1.10 with my static IP. The next address is the subnet mask. I don't understand what the next two addresses refer to. Is one of them supposed to be the gateway? Mine is 192.168.1.1.
One of them being the gateway makes sense, but which one? And why is there a fourth ... and what does it refer to?
Sorry for the epic post and many questions. Thank you in advance for reading and for any help you can provide - it is much appreciated.