LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Closed Thread
  Search this Thread
Old 05-04-2012, 12:33 PM   #1
fs142
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Policy route packets sourced from localhost


Hi,

My setup is as follows

Internet A----CentOS PPTP Server===NAT/Internal Network=====InternetB

I can establish a PPTP tunnel to the CentOS PPTP Server just fine.
Once tunnel is established I want all traffic to be forced through my
Internal Network and then back out on the Internet through another router.

I'm thinking of doing the above as follows.
On PPTP Server, have default gateway pointing to my internel network.

To establish the PPTP connection, I need to set a policy route such that
packets sourced from the PPTP server used to establish PPTP connection (UDP port 1723) are routed back on InternetA. Since default GW points to my internal network, all other traffic is forced through the internel network.

I know this can be done with PBR on a Cisco router.
How do I achieve this in Linux?

Essentially, on the PPTP server I need to implement a policy that
marks locally sources UDP src port packets 1723 and policy routes them
back to InternetA.

thanks,
 
Old 05-05-2012, 06:43 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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
Route eth2 TCP packets to tun0 with IPTABLES & IP RULE/ROUTE Thireus Linux - Networking 4 05-09-2011 12:38 PM
Policy based routing, leaking packets tetra Linux - Networking 0 04-22-2009 02:15 AM
not able to route packets through wireless card geek1234 Linux - Wireless Networking 7 12-12-2007 11:08 AM
route packets by their remote port spastikman Linux - Networking 3 08-20-2005 12:23 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:21 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