LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Port based routing (https://www.linuxquestions.org/questions/linux-networking-3/port-based-routing-365101/)

neos 09-19-2005 11:17 PM

Port based routing
 
Hi i need help ?

I want to port based routing this is my scenario

I need to forward port 5060 to CIPE(VPN) tunnel, what should i do to forward it.
Plz help me out , with some example

This is what i want

IF port 5060 forward-from -- |cipe local Singapore|--to--|cipe HeadOffice UK|

means send port 5060 traffic on VPN tunnel to Headoffice.
I have establish Point to Point tunnel b/w local office and Headoffice.
Now what should i do to forward port 5060 through Tunnel.
Point to Point tunnel =cipe local Singapore = cipe IP = 10.0.0.1
Point to Point tunnel =cipe HeadOffice UK = cipe IP = 10.0.0.2

Plz Plz help me out.

Thanks In Advance

david_ross 09-21-2005 01:15 PM

I'm not 100% sure what you are looking for but I think you just want to use an iptables nat like:
iptables -A PREROUTING -p tcp --dport 5060 -j REDIRECT --to-destination 10.0.0.1:5060


All times are GMT -5. The time now is 02:23 PM.