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.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
please i need your help with ssh proxy
tvpscollector
Member
in Help
Hi everyone,
i recently got a LEB vps with 2 additional ips for use as private ssh proxies using putty. The problem i am having however is that only the main ip of the vps is used to connect to websites even when i use other ips. is there a way i can solve this problem such that i can use the other ips as proxies also not just only the main ip?
Thank you.
Comments
Use a software like Bitvise Tunnelier, where you can specify the public IP to use for proxy.
You can use iptables to specify the outgoing IP for different users.
iptables -t mangle -A OUTPUT -m owner --uid-owner USER_UID -j MARK --set-mark USER_UID
iptables -t nat -A POSTROUTING -m mark --mark USER_UID -j SNAT --to-source outgoing-IP
user_uid can be found in /etc/passwd
any help still searching
Create a proxy-only user and force all their traffic through a specific interface/ip with a combination of iptables marking (like Jylee said above) and policy routing. Read:
http://linux-ip.net/html/linux-ip.html#ch-advanced-routing
http://lartc.org/howto/lartc.netfilter.html
http://lartc.org/howto/lartc.rpdb.html