Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


ssh tunnel help?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

ssh tunnel help?

So I've got a bunch of IP on an OVH server. I tried as an experiment to setup ssh tunnel to see if works and it does. So i setup 2 tunnels with two different ports and IPs that are for the same server. However when i check in firefox both ports it comes up as same main ip.

What am I missing here?

Comments

  • I use this command:
    ssh -D 1230 -C -q -N user@ip
    ssh -D 1231 -C -q -N user@ip2

  • Sounds like a routing issue. Just because you're ssh-ing in to different IPs doesn't mean the outgoing forwarded traffic goes out on different interfaces.

    Maybe try some iptables prerouting rules to mark packets according to inbound interface, followed by "ip route" rules sending marked packets out on the corresponding interfaces.

    I might be overthinking it; perhaps someone more knowledgeable will have a simpler solution.

Sign In or Register to comment.