LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2014, 06:32 AM   #1
BhushanPathak
Member
 
Registered: Nov 2013
Location: Pune, India
Distribution: CentOS
Posts: 85

Rep: Reputation: Disabled
Configuring two NICS to be used based on port number used for communication


Hello,

I have CentOS deployed with 2 NIC cards, both have different IPv4 addresses.

I also have a JBOSS AS instance running with multiple apps deployed in it.

The requirement that I have is that based on the port being used for communication, the traffic should flow through different network interfaces, for ex -
eth0 should be used -
1. Accept & respond to requests coming over port 80, 443, 8080
2. When the server wants to start communication outside on these ports

eth1 should be used -
1. Accept & respond to requests coming over port 1099, 1399
2. When the server wants to start communication outside on these ports

Right now, the server is using only eth0 for all its communication. The individual apps in the JBOSS are not intelligent enough to identify & use different interfaces when communicating over different ports.


Is there someway of creating a virtual bridge or virtual tunnel or the like which would allow to segregate the traffic at the OS level based on ports used? I can then try to bind the JBOSS AS to use the virtual bridge/tunnel/etc. to use for communication.

Thanks
Bhushan
 
Old 05-20-2014, 08:20 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Haven't done it myself but this post looks like it might have the way to go:

http://www.linuxquestions.org/questi...not-ip-486823/
 
1 members found this post helpful.
  


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
ip routing based on port number. hansemmanuel Linux - Networking 4 10-02-2010 12:46 AM
Number NICs on remote PC timonbg Linux - Networking 5 10-18-2006 05:31 AM
Internal communication between NICs abhiar Linux - Networking 3 10-17-2006 11:51 AM
Problem in Configuring Serial Port based UPS on Linux AS 4 nadravian Linux - Hardware 0 06-08-2006 12:03 AM
2 NICs with 2 Servers - Communication problem - Help Koroshiya Linux - Networking 0 01-13-2005 06:22 PM

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

All times are GMT -5. The time now is 04:51 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
Open Source Consulting | Domain Registration