LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-20-2005, 12:17 AM   #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-20-2005 at 12:20 AM.
 
Old 09-21-2005, 02:15 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
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 07:35 PM
question on flow-based routing cainiao Linux - Networking 1 08-20-2004 07:50 AM
routing port 80 bm1 Linux - Hardware 3 12-20-2003 02:55 PM
port routing problem darchon Linux - Networking 4 04-01-2003 04:48 AM
Port Routing/mapping Fuigus Linux - Networking 1 09-14-2001 05:29 AM


All times are GMT -5. The time now is 03:05 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration