deluge-vpn icon indicating copy to clipboard operation
deluge-vpn copied to clipboard

curl

Open IamC8 opened this issue 8 years ago • 3 comments

Hi, I followed the basic deluge setup, running as deluge user etc. When I curl as normal user curl --interface eth0 ifconfig.co curl --interface tun0 ifconfig.co I get the same ip When I curl (like above) as root I get two different ips? I have removed user from group deluge with the same result? Please advice

IamC8 avatar Apr 10 '16 19:04 IamC8

I fixed it, I think. In the original article the guy mentions: "If you are using OpenVPN, you will need to ensure this line is in your config file, to prevent all traffic from sending over the VPN by default:"

route-nopull That solved it.

IamC8 avatar Apr 11 '16 05:04 IamC8

I am having the same problem with curl. It seems that curl always uses tun0, which is set for VPNIF in my vpn_base.sh.

When I used telnet ifconfig.me 80 and "GET /", I am getting the IP from tun0. So all the traffics seem to be sent to the VPN.

I am not sure how you fixed it.

BTW, I have two lines in my openvpn.conf file like this: up /home/pi/git/deluge-vpn/link_up_user_filter.sh script-security 2

wrice127 avatar Sep 17 '16 05:09 wrice127

I think this might be related to the fact that tun0 is still overriding eth0 on the route table.

~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         11.12.13.2      128.0.0.0       UG    0      0        0 tun0
default         192.168.0.1     0.0.0.0         UG    202    0        0 eth0

wrice127 avatar Sep 17 '16 09:09 wrice127