You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don’t get it, normally wifi calling does not pass through the VPN and I want to make it pass through. I need an ip table rule or something like that
This discussion was converted from issue #460 on January 23, 2023 22:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I am trying to get Wifi-Calling to go through my VPN.
I tried to use iptables to do so, without success.
Wifi calling uses uid 1001 and udp port 500 and 4500.
I tried this:
Create a table that is used when marked by 2
ip rule add fwmark 2 table 3
Set what the table do. Make everything that falls under the rule go through the VPN (tun0)
ip route add 0.0.0.0/0 via 10.8.0.26 dev tun0 table 3
Then the iptable rule to mark everything from udp port 500 to tun0:
iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 500 -j DNAT --to-destination 10.8.0.26:500
iptables -A FORWARD -i wlan0 -o tun0 -p udp --dport 500 -j ACCEPT
iptables -t nat -A POSTROUTING -o tun0 -p udp --dport 500 -j SNAT --to-source 10.8.0.26
this is obviously not working.
Beta Was this translation helpful? Give feedback.
All reactions