Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Running two NICs with one running a VPN possible?
New Posts  All Forums:Forum Nav:

Running two NICs with one running a VPN possible?

post #1 of 14
Thread Starter 
So as the title says im running two nics and want to divide my traffic. I would love to have a VPN on one NIC and all my regular traffics like gaming and what not through the other. Is this at all possible? If so How would I implement? I tried googling and cant find much.
Upgrayedd
(8 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.95GHz 1.387v Asus Prime B350 Plus  RX480 XFX RS 1350/2200 Corsair Vengeance LPX 16GB 2933Mhz cas 14 
Hard DriveOSMonitorPower
Samsung 950 Pro M.2 Windows 10 pro x64 Viotek curved FHD 144Hz EVGA 750w 80 Bronze 
  hide details  
Reply
Upgrayedd
(8 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.95GHz 1.387v Asus Prime B350 Plus  RX480 XFX RS 1350/2200 Corsair Vengeance LPX 16GB 2933Mhz cas 14 
Hard DriveOSMonitorPower
Samsung 950 Pro M.2 Windows 10 pro x64 Viotek curved FHD 144Hz EVGA 750w 80 Bronze 
  hide details  
Reply
post #2 of 14
Windows?

You would need to mess with the routing table, its not easy by any stretch
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
post #3 of 14
Why don't you just split tunnel the VPN? Or you could use policy-based routing to pipe TCP 80/443 out of a VPN/tunnel interface.

What are you really hoping to accomplish with this setup?
Edited by beers - 1/12/15 at 4:41am
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
post #4 of 14
Quote:
Originally Posted by Dimaggio1103 View Post

So as the title says im running two nics and want to divide my traffic. I would love to have a VPN on one NIC and all my regular traffics like gaming and what not through the other. Is this at all possible? If so How would I implement? I tried googling and cant find much.

If you have two IPs rather than bonding the NICs, then it should be pretty easy as you'd just set the VPN listener to be one NIC and have everything else routed over the other IP.

Which OS are you running this on?
post #5 of 14
Thread Starter 
But how would I make sure everything else is routing over the other NIC? I basically only want my VPN and "program" on one NIC and regular traffic on the other.

Windows 7
Edited by Dimaggio1103 - 1/12/15 at 2:55pm
Upgrayedd
(8 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.95GHz 1.387v Asus Prime B350 Plus  RX480 XFX RS 1350/2200 Corsair Vengeance LPX 16GB 2933Mhz cas 14 
Hard DriveOSMonitorPower
Samsung 950 Pro M.2 Windows 10 pro x64 Viotek curved FHD 144Hz EVGA 750w 80 Bronze 
  hide details  
Reply
Upgrayedd
(8 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.95GHz 1.387v Asus Prime B350 Plus  RX480 XFX RS 1350/2200 Corsair Vengeance LPX 16GB 2933Mhz cas 14 
Hard DriveOSMonitorPower
Samsung 950 Pro M.2 Windows 10 pro x64 Viotek curved FHD 144Hz EVGA 750w 80 Bronze 
  hide details  
Reply
post #6 of 14
Quote:
Originally Posted by Dimaggio1103 View Post

But how would I make sure everything else is routing over the other NIC? I basically only want my VPN and "program" on one NIC and regular traffic on the other.

Windows 7
This is where you'd start playing around with subnets and/or vlans. It can be done, but I have no idea how to do it in Windows and/or without a decent managed switch
post #7 of 14
So when you set up your VPN you are going to dictate what traffic goes over it. So as an example, any traffic in the 192.168.0.0 network with a subnet of 255.255.0.0 will go over the VPN connection, anything else would go over the other connection. However i don't know why you need 2 NICs to do this. Are you fully saturating 1 NIC? Even if you do this with 75Mbps internet you are still going to be bottlenecked by the WAN interface.
Desktop!
(13 items)
 
Spare Gaming Rig
(11 items)
 
 
CPUMotherboardGraphicsRAM
R7 1700X 3912 Mhz @ 1.375v BIOSTAR X370GT7 eVGA GTX 1080 ACX 3.0  CORSAIR Vengeance White LED 3200 Mhz (4x8GB) 32GB 
Hard DriveHard DriveCoolingMonitor
256GB Samsung 850 Pro 1TB Samsung 850 Evo NZXT Kraken X52 Dell S2417DG 165Hz 1440p G-Sync 
KeyboardPowerCaseMouse
Razer Ornata Corsair 750 RM Phanteks Evolv ATX Logitech G602 
CPUMotherboardGraphicsRAM
i7 4790k @ 4.6Ghz Asus MAXIMUS VII GENE GTX 980 Ti @ 1400 Mhz 4 x 4GB (16GB) Corsair LPX DDR3 
Hard DriveHard DriveCoolingOS
240GB Seagate 1TB RAID HDD Cosair H240 Windows 10 
MonitorKeyboardPower
Asus P278Q Razer BlackWidow Corsair 650W 
  hide details  
Reply
Desktop!
(13 items)
 
Spare Gaming Rig
(11 items)
 
 
CPUMotherboardGraphicsRAM
R7 1700X 3912 Mhz @ 1.375v BIOSTAR X370GT7 eVGA GTX 1080 ACX 3.0  CORSAIR Vengeance White LED 3200 Mhz (4x8GB) 32GB 
Hard DriveHard DriveCoolingMonitor
256GB Samsung 850 Pro 1TB Samsung 850 Evo NZXT Kraken X52 Dell S2417DG 165Hz 1440p G-Sync 
KeyboardPowerCaseMouse
Razer Ornata Corsair 750 RM Phanteks Evolv ATX Logitech G602 
CPUMotherboardGraphicsRAM
i7 4790k @ 4.6Ghz Asus MAXIMUS VII GENE GTX 980 Ti @ 1400 Mhz 4 x 4GB (16GB) Corsair LPX DDR3 
Hard DriveHard DriveCoolingOS
240GB Seagate 1TB RAID HDD Cosair H240 Windows 10 
MonitorKeyboardPower
Asus P278Q Razer BlackWidow Corsair 650W 
  hide details  
Reply
post #8 of 14
Quote:
Originally Posted by Shiftstealth View Post

So when you set up your VPN you are going to dictate what traffic goes over it. So as an example, any traffic in the 192.168.0.0 network with a subnet of 255.255.0.0 will go over the VPN connection, anything else would go over the other connection. However i don't know why you need 2 NICs to do this. Are you fully saturating 1 NIC? Even if you do this with 75Mbps internet you are still going to be bottlenecked by the WAN interface.

I'm assuming he's trying to keep latency down. Not sure if running two NICs would solve that issue, but there's no harm in trying if he already has the hardware to test it on
post #9 of 14
Quote:
Originally Posted by Plan9 View Post

I'm assuming he's trying to keep latency down. Not sure if running two NICs would solve that issue, but there's no harm in trying if he already has the hardware to test it on

I suppose, but trying it at the windows level sounds...strange. I mean i guess i'm just more familiar with cisco devices. I mean i understand what beers is getting at with the policy based routing, but i don't think windows has any functionality for it. I mean you are essentially talking about a layer 4 router. Even then it isn't the same NIC.

I mean this *might* be possible if you do the million or whatever it would be ROUTE ADD (IP ADDRESS) MASK (mask) in cmd, but it would be a ton of effort.
Desktop!
(13 items)
 
Spare Gaming Rig
(11 items)
 
 
CPUMotherboardGraphicsRAM
R7 1700X 3912 Mhz @ 1.375v BIOSTAR X370GT7 eVGA GTX 1080 ACX 3.0  CORSAIR Vengeance White LED 3200 Mhz (4x8GB) 32GB 
Hard DriveHard DriveCoolingMonitor
256GB Samsung 850 Pro 1TB Samsung 850 Evo NZXT Kraken X52 Dell S2417DG 165Hz 1440p G-Sync 
KeyboardPowerCaseMouse
Razer Ornata Corsair 750 RM Phanteks Evolv ATX Logitech G602 
CPUMotherboardGraphicsRAM
i7 4790k @ 4.6Ghz Asus MAXIMUS VII GENE GTX 980 Ti @ 1400 Mhz 4 x 4GB (16GB) Corsair LPX DDR3 
Hard DriveHard DriveCoolingOS
240GB Seagate 1TB RAID HDD Cosair H240 Windows 10 
MonitorKeyboardPower
Asus P278Q Razer BlackWidow Corsair 650W 
  hide details  
Reply
Desktop!
(13 items)
 
Spare Gaming Rig
(11 items)
 
 
CPUMotherboardGraphicsRAM
R7 1700X 3912 Mhz @ 1.375v BIOSTAR X370GT7 eVGA GTX 1080 ACX 3.0  CORSAIR Vengeance White LED 3200 Mhz (4x8GB) 32GB 
Hard DriveHard DriveCoolingMonitor
256GB Samsung 850 Pro 1TB Samsung 850 Evo NZXT Kraken X52 Dell S2417DG 165Hz 1440p G-Sync 
KeyboardPowerCaseMouse
Razer Ornata Corsair 750 RM Phanteks Evolv ATX Logitech G602 
CPUMotherboardGraphicsRAM
i7 4790k @ 4.6Ghz Asus MAXIMUS VII GENE GTX 980 Ti @ 1400 Mhz 4 x 4GB (16GB) Corsair LPX DDR3 
Hard DriveHard DriveCoolingOS
240GB Seagate 1TB RAID HDD Cosair H240 Windows 10 
MonitorKeyboardPower
Asus P278Q Razer BlackWidow Corsair 650W 
  hide details  
Reply
post #10 of 14
Quote:
Originally Posted by Shiftstealth View Post

I suppose, but trying it at the windows level sounds...strange. I mean i guess i'm just more familiar with cisco devices. I mean i understand what beers is getting at with the policy based routing, but i don't think windows has any functionality for it. I mean you are essentially talking about a layer 4 router. Even then it isn't the same NIC.

I mean this *might* be possible if you do the million or whatever it would be ROUTE ADD (IP ADDRESS) MASK (mask) in cmd, but it would be a ton of effort.
I don't think it's as difficult as you're making out. Windows 7 would have the same NT subsystem as the Windows Server range and it's definitely possible to do on Windows Server.

Plus route add supports subnet masks so you wouldn't need to add every IP in there. Just set the VPN subnet route on the second NIC (with the VPN listener on that IP) and set the first subnet to be the default route. With any luck, you wouldn't need a layer 3 switch as you could just set your router to work on a wider subnet:

eg router config:
LAN == 192.168.0.0 255.255.0.0
192.168.1.0/24 == ethernet, WiFi, etc
192.168.2.0/24 == VPN

Then on the PC:
NIC 1 == 192.168.1.2 (default route)
NIC 2 == 192.168.2.2 (VPN)
VPN config == listen ip: 192.168.2.2

I'm not a networking guy though - so I make no guarantees that the above would work.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Running two NICs with one running a VPN possible?