LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2005, 11:17 PM   #1
neos
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
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

Last edited by neos; 09-19-2005 at 11:20 PM.
 
Old 09-21-2005, 01:15 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 06:35 PM
question on flow-based routing cainiao Linux - Networking 1 08-20-2004 06:50 AM
routing port 80 bm1 Linux - Hardware 3 12-20-2003 01:55 PM
port routing problem darchon Linux - Networking 4 04-01-2003 03:48 AM
Port Routing/mapping Fuigus Linux - Networking 1 09-14-2001 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration