如何通过ipv6运行softether?

时间:2016-06-08 12:11:01

标签: vpn iptables dnsmasq

我已经在我的机器上设置了softether,并设法为ipv4地址运行它。

我通过dnsmasq运行它。

我怎么能为ipv6做同样的事情?例如ipv4的配置http://blog.lincoln.hk/blog/2013/05/17/softether-on-vps-using-local-bridge/

你可以帮忙设置吗?

2 个答案:

答案 0 :(得分:0)

Softether上的以下协议有ipv6支持: - 通过点击设备OpenVPN

以下协议没有ip vv6支持 - OpenVPN通过tun - L2TP / IPSec

查看这些主题: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/244 http://www.vpnusers.com/viewtopic.php?f=7&t=4706&p=12095&hilit=L2TP+IPv6#p12095

如果你按照你提到的教程设置了一个点击设备,那么如果点击设备准备就绪并且客户端和服务器都支持ipv6,那么ipv6应该可以开箱即用

干杯

答案 1 :(得分:0)

您可以使用 Softether + Tap + Dnsmasq + radvd 来支持 IPv6。

步骤如下:

运行命令

apt install software-properties-common
apt-add-repository ppa:paskal-07/softethervpn
apt update
apt install softether-vpnserver
apt install dnsmasq radvd

dnsmasq.conf

interface=tap_vpn
except-interface=eth0

bind-interfaces
strict-order

# don't send bogus requests out on the internets
bogus-priv

# enable IPv6 Route Advertisements
listen-address=192.168.88.1

no-resolv
server=2606:4700:4700::1111
server=2001:4860:4860::8888
server=1.1.1.1
server=8.8.8.8
#resolv-file=/etc/resolv.dnsmasq.conf

# Construct a valid IPv6 range from reading the address set on the interface. The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get this right or dnsmasq will get confused.
#dhcp-range=2001:888:db8:1::,ra-stateless,ra-names

# dhcp-range=tap_vpn,::1,slaac,ra-only,64,4W
#enable-ra

# ra-names enables a mode which gives DNS names to dual-stack hosts which do SLAAC  for  IPv6.
# Add your local-only LAN domain
local=/intra.domain.com/

#  have your simple hosts expanded to domain
expand-hosts

# set your domain for expand-hosts
domain=intra.cubeage.com

# provide a IPv4 dhcp range too
dhcp-range=tag:tap_vpn,192.168.88.13,192.168.88.213,720h
#dhcp-option=tap_vpn,3,192.168.88.1
dhcp-option=tag:tap_vpn,option:router,192.168.88.1
dhcp-option=tag:tap_vpn,option:dns-server,192.168.88.3,192.168.88.1
#dhcp-option=tag:tap_vpn,option6:dns-server,[fe80::1]
#dhcp-option=tap_vpn,6,192.168.88.1

# set authoritative mode
dhcp-authoritative


dhcp-no-override
proxy-dnssec
domain-needed
stop-dns-rebind
rebind-localhost-ok
dhcp-option=252,"\n"

dns-forward-max=300

dhcp-option=23,64

dhcp-option=vendor:MSFT,2,1i

dhcp-option=44,192.168.88.1 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
dhcp-option=45,192.168.88.1 # netbios datagram distribution server
dhcp-option=46,8         # netbios node type
dhcp-option=47

radvd.conf

interface tap_vpn
{
        AdvSendAdvert on;
        # MinRtrAdvInterval 3;
        # MaxRtrAdvInterval 10;
        # AdvManagedFlag on;
        # AdvOtherConfigFlag on;
        prefix 2001:888:db8:1::1/64 {
                        AdvOnLink on;
                        AdvRouterAddr on;
                        AdvAutonomous on;
        };
};