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.
Using a VPS as tunnel
I'm setting a SIP server for my client. Everything is setup and working. I used Asterisk for that.
Now my challenge is to listen port 5060 and 5061 in a LOCAL_IP and redirect all traffic to REMOTE_IP:5060. Basically SIP server is remotely hosted and want local user to connect through a local high speed tunnel.
It's possible to redirect all traffic setting up a VPN but I need to keep the LOCAL_IP open for all for specified ports.
Any idea how to achieve that?
Here LOCAL_IP means IP form user's area. A VPS actually. REMOTE_IP is the SIP server's IP.
Comments
I would suggest tinc, and some iptables rules but, I am not sure if that would be the best way for your application.
EDIT: Just to clarify tinc for the tunnel and iptable rules to forward only the specific ports from the Local_ip via tunnel to the remote_ip, routing tables on the sip server to redirect only the traffic that originated from the tunnel back to the tunnel and out the the local_ip
With Netcat as intercepting proxy?
Why can't you connect directly, you do realise there's no such thing as a 'high speed' detour?