I have Ubuntu mate 18.04, i can connect my phone on the vpn but i cannot access Internet.
My raspberry:
Code: Select all
sudo cat /etc/iptables/rules.v4
[sudo] password for jamesraspberry:
# Generated by iptables-save v1.6.1 on Sat Feb 15 00:37:07 2020
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 10.8.0.0/24 -o enxb827eb93e2d3 -m comment --comment openvpn-nat-rule -j MASQUERADE
COMMIT
# Completed on Sat Feb 15 00:37:07 2020
# Generated by iptables-save v1.6.1 on Sat Feb 15 00:37:07 2020
*filter
:INPUT ACCEPT [2471:2638833]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1645:128590]
COMMIT
# Completed on Sat Feb 15 00:37:07 2020
Code: Select all
sudo cat /etc/openvpn/server.conf
dev tun
proto udp
port 1111
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/raspberry-desktop_baa46e79-ffcd-470e-b5ba-27b12e0d884f.crt
key /etc/openvpn/easy-rsa/pki/private/raspberry-desktop_baa46e79-ffcd-470e-b5ba-27b12e0d884f.key
dh none
ecdh-curve prime256v1
topology subnet
server 10.8.0.0 255.255.255.0
# Set your primary domain name server address for clients
#push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 208.67.220.220"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 15 120
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
user openvpn
group openvpn
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
# Generated for use by PiVPN.io
Code: Select all
ifconfig
enxb827eb93e2d3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.43 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::4f1e:679a:16db:6f8a prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:93:e2:d3 txqueuelen 1000 (Ethernet)
RX packets 24844 bytes 4577104 (4.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13018 bytes 1932663 (1.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 152 bytes 12179 (12.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 152 bytes 12179 (12.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.1 netmask 255.255.255.0 destination 10.8.0.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:c6:b7:86 txqueuelen 1000 (Ethernet)
RX packets 37658 bytes 14704663 (14.7 MB)
RX errors 0 dropped 37658 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Thank you.