Tunnel SE traffic through warp

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
a.saneie
Posts: 20
Joined: Fri Jan 27, 2023 1:09 am

Tunnel SE traffic through warp

Post by a.saneie » Fri Oct 13, 2023 7:28 am

Hello
Is there a way to tunnel SoftEther traffic through warp? so that we can bypass Spotify VPN IP blockage.

a.saneie
Posts: 20
Joined: Fri Jan 27, 2023 1:09 am

Re: Tunnel SE traffic through warp

Post by a.saneie » Fri Oct 13, 2023 7:30 am

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

shakibamoshiri
Posts: 289
Joined: Wed Dec 28, 2022 9:10 pm

Re: Tunnel SE traffic through warp

Post by shakibamoshiri » Fri Oct 13, 2023 12:27 pm

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

Post Reply