Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 Network Cards in 1 PC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
plice
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2009
Posts: 83
Location: Poland

PostPosted: Wed Oct 03, 2012 12:23 am    Post subject: 2 Network Cards in 1 PC Reply with quote

Hi,

I have 1 PC that I need to connect to VPN using eth0 with DHCP. Also I have eth1 that i would like to connect to a local lan with few PCs. The eth1 does not need a gateway/dns. Will that work without any conflicts?

I need to receive data from eth1 and send it to eth0.
thank you
Back to top
View user's profile Send private message
Mistwolf
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2007
Posts: 108
Location: Edmonton, AB

PostPosted: Wed Oct 03, 2012 2:19 am    Post subject: Reply with quote

follow http://www.gentoo.org/doc/en/home-router-howto.xml, you are basically using the computer as a router.

Modify as needed for your VPN needs.

Hope this helps.
Back to top
View user's profile Send private message
plice
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2009
Posts: 83
Location: Poland

PostPosted: Wed Oct 03, 2012 2:42 am    Post subject: Reply with quote

Mistwolf wrote:
follow http://www.gentoo.org/doc/en/home-router-howto.xml, you are basically using the computer as a router.

Modify as needed for your VPN needs.

Hope this helps.


i don't need to turn the PC to router. I just need to access both networks (VPN and the lan) from that PC. I have a software that sends data using the given IP, so when I put the IP of the VPN it will send happily the data through VPN.
So if i pre-configure the two cards, one for VPN and 2nd for local lan, will that be sufficient? both cards will have different sub-nets.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1942
Location: Zurich, Switzerland

PostPosted: Wed Oct 03, 2012 6:48 am    Post subject: Reply with quote

In that case, a secondary adapter would only complicate the setup, and depending on the answer to the questions below, it may be impossible.

what vpn client are you using?
which traffic does get tunneled (sent into the vpn)? which traffic does not get tunneled?
can you change the vpn settings? on the client? on the server/VC?

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum