0

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

我正在通过 dnsmasq 运行它。

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

你能帮忙设置吗?

4

2 回答 2

0

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

以下协议不支持 ipv6 - OpenVPN through 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

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

干杯

于 2016-08-30T23:00:08.023 回答
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;
        };
};
于 2021-03-15T11:21:43.997 回答