Page 1 of 1

Tunnel SE traffic through warp

Posted: Fri Oct 13, 2023 7:28 am
by a.saneie
Hello
Is there a way to tunnel SoftEther traffic through warp? so that we can bypass Spotify VPN IP blockage.

Re: Tunnel SE traffic through warp

Posted: Fri Oct 13, 2023 7:30 am
by a.saneie
I think it's worth mentioning I'm talking about implementing this on a Linux machine.

Current setup:

User <> Domestic server SE <> USA server SE

Re: Tunnel SE traffic through warp

Posted: Fri Oct 13, 2023 12:27 pm
by shakibamoshiri
Yes you can

Assuming your have 2 servers A and B where A is the SE server and WRAP client and B is WRAP exit node
[ (client) ] === via SE ===> [ ( server A) + ( WRAP client ) ] === via WRAP ===> exit node

# WRAP
connect the WRAP and make sure it is a split tunnel not a full tunnel
make sure your ping the WARP gateway IP address

# SE
setup up SE server and add local bridge and users can connect to server A

# client
connect a client to server A and make sure users IP address has changed to server A IP address

# server A
you need to enable ipv4 forward

Code: Select all

sysctl -w net.ipv4.ip_forward=1
add iptable source nat

Code: Select all

-A POSTROUTING -s IP/CIDR ! -d IP/CIDR -o WRAP-INET -j SNAT --to-source WRAP-CLIENT-IP
for example (change packets source to WRAP)

Code: Select all

-A POSTROUTING -s 192.168.168.0/24 ! -d 192.168.168.0/24 -o tun0 -j SNAT --to-source 192.168.100.2
make a custom table

Code: Select all

ip rule add from IP/CIDR lookup 1000
ip route add table 1000 default via WRAP-GATEWAY dev WRAP-INET
example

Code: Select all

from 192.168.168.0/24 lookup 1000
default via 192.168.100.1 dev tun0
now SE clients should be connected to server B which is WRAP servers