Hi, I’ve wireguard connection to Surfshark setup and working on vero v, all is working fine except I can’t ssh into it from wan network, from lan it works, when wg is up, all is working fine when I bring wg down?
I tried to add routing table, rules… I did:
sudo iptables -t mangle -A PREROUTING -i eth0 -j MARK --set-mark 10
echo “100 eth0_table” | sudo tee -a /etc/iproute2/rt_tables
sudo ip route add default via 192.168.0.1 dev eth0 table eth0_table
sudo ip rule add fwmark 10 lookup eth0_table
I wanted to mark connection coming in from eth0 interface and route response to the same interface, because I think it responds over wireguard interface, but this doesn’t work.
I also tried port based marking -p 22 instead -i eth0.
Connecting device never gets rejected or anything, just hangs, I supose waiting for reply.
Hope someone could help with this?
ty