Hi Gert,

I disabled the firewall. This caused openvpn to work worse than before. It was 
no longer possible to ping an outside host using ipv6, although it's still 
possible to ping the client and server in both directions. It's also possible 
to ping another host on the same lan as the server using ipv6.

root@ubuntu-vpn:~# ufw reset
Resetting all rules to installed defaults. This may disrupt existing ssh
connections. Proceed with operation (y|n)? y
Backing up 'before.rules' to '/etc/ufw/before.rules.20170610_220636'
Backing up 'after6.rules' to '/etc/ufw/after6.rules.20170610_220636'
Backing up 'after.rules' to '/etc/ufw/after.rules.20170610_220636'
Backing up 'user.rules' to '/etc/ufw/user.rules.20170610_220636'
Backing up 'before6.rules' to '/etc/ufw/before6.rules.20170610_220636'
Backing up 'user6.rules' to '/etc/ufw/user6.rules.20170610_220636'

root@ubuntu-vpn:~# ufw disable
Firewall stopped and disabled on system startup

root@ubuntu-vpn:~# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
root@ubuntu-vpn:~# ip6tables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

With the ufw disabled, I manually enabled ipv4 and ipv6 forwarding using 
/etc/sysctl.conf. 

root@ubuntu-vpn:~# sysctl -p
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1

This file is missing one of the settings in /etc/ufw/systcl.conf, but it 
appears the using "all" caused both to be set.
net/ipv4/ip_forward=1
net/ipv6/conf/default/forwarding=1
net/ipv6/conf/all/forwarding=1

root@ubuntu-vpn:~# more /proc/sys/net/ipv4/ip_forward
1
root@ubuntu-vpn:~# more /proc/sys/net/ipv6/conf/all/forwarding
1
root@ubuntu-vpn:~# more /proc/sys/net/ipv6/conf/default/forwarding
1

root@ubuntu-vpn:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:15:5d:5c:e2:26
          inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:x:y:e800::1376/128 Scope:Global
          inet6 addr: fe80::215:5dff:fe5c:e226/64 Scope:Link
          inet6 addr: 2001:x:y:e800:215:5dff:fe5c:e226/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8577 errors:0 dropped:12 overruns:0 frame:0
          TX packets:5417 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2938952 (2.9 MB)  TX bytes:518972 (518.9 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:226 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:20504 (20.5 KB)  TX bytes:20504 (20.5 KB)

With the firewall disabled, I can ping and traceroute google.com from the 
server using ipv4, but not ipv6.

root@ubuntu-vpn:~# ping6 google.com
connect: Network is unreachable

root@ubuntu-vpn:~# traceroute -6 google.com
traceroute to google.com (2607:f8b0:400a:800::200e), 30 hops max, 80 byte 
packets
connect: Network is unreachable

Any idea how to get this working? It was working before I disabled ufw.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to