angristan / openvpn-install

Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.
https://stanislas.blog
MIT License
13.84k stars 3k forks source link

How to connect to the VPN server via IPv6? #701

Open laichiaheng opened 4 years ago

laichiaheng commented 4 years ago

Checklist

Describe the issue If I chage the IP address in ovpn file to IPv6 address, it fails to connect.

To Reproduce Steps to reproduce the behavior:

  1. Edit the ovpn file.

Expected behavior It connects to my VPN server.

Logs If applicable, add logs or screenshots to help explain your problem.

If you can reproduce the issue, please run the script in debug mode and post the output: bash -x openvpn-install.sh

Server if applicable):

Client (if applicable):

Additional context Add any other context about the problem here.

randshell commented 4 years ago

If I chage the IP address in ovpn file to IPv6 address, it fails to connect.

You have to edit other things too: set iptables for IPv6, enable IP forwarding for IPv6, change the NIC. I think it would be easier to reinstall with IPv6 support enabled.

laichiaheng commented 4 years ago

If I chage the IP address in ovpn file to IPv6 address, it fails to connect.

You have to edit other things too: set iptables for IPv6, enable IP forwarding for IPv6, change the NIC. I think it would be easier to reinstall with IPv6 support enabled.

Could you teach me how to do that?

randshell commented 4 years ago

Restart the OpenVPN service or reboot and let me know if it worked for you.

I'm sorry for my previous answer suggesting a re-installation.

antnb commented 3 years ago

sory if hijack the thread ..i dont want to open new issue as mine morelikely are just feature questions

is it posible to suplied more than 1 port on udp? for example single configuration for port 53 and 9201