Hi!
I used more or less this guide to set up a raspberrry with openvpn tap
http://www.emaculation.com/doku.php/bri ... rver_setup
and enabled ipv4 forwarding + And added the following lines to my OpenVPN server conf
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
Just a newbie question:
The server is configured with 192.168.2.10 and dg 192.168.2.1 When I start the raspberry I cannot ping it from internal lan (ex a win computer) and internet doesnt work on raspberry.
If I run systemctl stop openvpn@server.service, I can ping it and internett works on the server.
I havent testet any clients to connect to server yet, but I just have a feeling it wont work.
Any ideas?
Vpn server with tap
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Jul 16, 2020 5:27 pm
Re: Vpn server with tap
I tested it from external network and I can access vpn server:) I get adress from dhcp pool (192.168.2.11).
However, internet doesnt work, and I cant ping 192.168.2.1 or anything on the on the network im connected to.
Must be something from with routing or redirecting of traffic?
If i type ipconfig, I can only see ip and subnetmask on "vpn ipadress". Default gatway is "blank".
However, internet doesnt work, and I cant ping 192.168.2.1 or anything on the on the network im connected to.
Must be something from with routing or redirecting of traffic?
If i type ipconfig, I can only see ip and subnetmask on "vpn ipadress". Default gatway is "blank".
-
- OpenVpn Newbie
- Posts: 4
- Joined: Fri Oct 09, 2020 8:54 am
Re: Vpn server with tap
push "redirect-gateway def1" this one here should be
push "redirect-gateway def1 bypass-dhcp"
can you share your server.conf and ifconfig? I cant get the client to connect to server after adding the bridge
push "redirect-gateway def1 bypass-dhcp"
can you share your server.conf and ifconfig? I cant get the client to connect to server after adding the bridge