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 01-20-2018, 02:02 AM   #1
greenerman
LQ Newbie
 
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
Question How to use different network for outgoing traffic


Good day all!

I got a VPS server being used as a VPN with 2 network interfaces venet0:0 and venet0:1. I want to use venet0:0 ip address to connect to it using SSH which I am already doing. And use venet0:1 for VPN traffic so it shows up when browsing websites. What is the best way to achieve that?

Thanks!
 
Old 01-20-2018, 02:15 AM   #2
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Rep: Reputation: 31
I believe POLICY ROUTING via iptables rules is the way to do this. Rules can be setup for different interfaces but I’m not versed in the syntax requirements.
 
  


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
Outgoing Traffic platypo Linux - Networking 2 01-22-2017 04:22 PM
Redirect outgoing traffic harish.golwilkar Solaris / OpenSolaris 6 04-07-2015 04:02 AM
buffer/delay outgoing network traffic VertLim Linux - Networking 2 01-04-2012 01:22 PM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Network traffic -- monitor my incoming and outgoing ports bskrakes Linux - Networking 5 04-02-2008 08:44 AM

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

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