我有个情况:
可能会起作用,但不起作用。默认的更改路径不是选项,因为通过eth0访问互联网的速度要快7倍+另一台openvpn服务器计划在同一台计算机上接受来自ppp1的连接,并通过eth0本身创建连接。
ifconfig:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255
ether 02:02:20:02:47:8f txqueuelen 1000 (Ethernet)
RX packets 5248 bytes 343827 (335.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 512 bytes 54725 (53.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 37
ppp1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1350
inet 172.16.1.2 netmask 255.255.255.255 destination 172.16.1.1
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 8 bytes 118 (118.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 99 (99.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0/etc/3 3proxy/3 proxy.cfg:
setgid 115
setuid 109
#nserver 192.168.1.1
nserver 172.16.1.1
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
#In theory, from this point on, traffic should go through the ppp1 interface.
external 172.16.1.2
internal 192.168.1.20
users $/etc/3proxy/.proxyauth
daemon
log /var/log/3proxy/3proxy.log D
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
auth cache strong
proxy -n -p8080 -a更多内容:3 3proxy发送的DNS流量通过ppp1 (用tcpdump观看)自由地传递(并返回)。
发布于 2019-01-08 19:53:31
这可能是因为代理中缺少正确的模块;负责"natin“pptp的模块。尝试以下几点:
lsmod |grep nf_nat_pptp
如果模块不存在,则必须键入:
modprobe nf_nat_pptp
echo 'net.netfilter.nf_conntrack_helper=1' >> /etc/sysctl.conf
sysctl -p
有了这些更改,pptp流量就应该跨越代理。
为了永久启用模块以便将来重新启动,您必须通过以下方法将其添加到模块文件中:
echo 'nf_nat_pptp' >> /etc/modules
https://unix.stackexchange.com/questions/493296
复制相似问题