I think I found what I Need at this link.
But i dont know if my VPN Network IP will always be the same. so maybe i can script something.
http://kindlund.wordpress.com/2007/1...utes-in-linux/
I think I found what I Need at this link.
But i dont know if my VPN Network IP will always be the same. so maybe i can script something.
http://kindlund.wordpress.com/2007/1...utes-in-linux/
OK, Got it. This works - I verified with tcpdump that I can change the next-hop MAC address the packets are sent to:
P.S. Here's a good referemce: http://lartc.org/Code:# Make a new routing table with a different default route ip route add default via 192.168.0.1 table 42 # Mark packets that need special routing iptables -t mangle -A OUTPUT -p tcp --dport 22 -j MARK --set-mark 99 # Add a rule to use a different routing table for marked packets ip rule add fwmark 99 table 42
Last edited by The Cog; December 11th, 2012 at 07:59 PM. Reason: P.S.
neither one of these worked.
The ppp0 vpn connection is still blocking the ssh connection..
There must be something else going on. Can you run
sudo tcpdump -eni any tcp port 22
while you try to connect the SSH, voth with and without the VPN running, and post the output?
Bookmarks