Operating System - HP-UX
1834351 Members
1763 Online
110066 Solutions
New Discussion

How to forward certain traffic through one desired interfaces?

 
SOLVED
Go to solution
Carlos Yáñez
Frequent Advisor

How to forward certain traffic through one desired interfaces?

Hi,
I'm currently sharing a machine with other system administrator and user. This machine is powerful enough and will host OVO+NMM by my side and some DB backup and DB applications.

In this context, we set up 2 networks interfaces. Those are configured on totally different subnets and our intention is to keep both uses (OVO and DB apps), trying to keep one interface for each application.

Do you have any suggestions in order to perfom that? How configurable could it be? It would be terrific to me for example to forward all outgoing and incoming traffic via OV and SNMP ports (tcp/udp) via on interface and keeping only the traffic with the DB apps sockets to the other nic.

Ideas will be welcomed and properly rewarded (with forum's points, of course :-) ).

Regards,
Carlos Yáñez S.
5 REPLIES 5
Tony Scully_2
Valued Contributor

Re: How to forward certain traffic through one desired interfaces?

Carlos,

Unless I misunderstan then question, then this will be the default behaviour, as the DB application will have one IP address and OVO another.

Just set one lan card up with one address, another with the other address, and set the gateways appropriately.

Cheers,

Tony.




You CAN do that on HP
Biswajit Tripathy
Honored Contributor

Re: How to forward certain traffic through one desired interfaces?

Just configure each interfaces at a time, with IP
address from the corresponding subnet and without
bothering about the other subnet/interface. Once
done, this should work exactly the way you want it
to. You don't need to do anything extra.

Ofcourse, if you want machines from OVO-subnet
to access DB-subnet using the server as router,
you need to configure the routing table in machines
in both subnets AND the server.

Finally, make the configurations permanent by
editing /etc/rc.config.d/netconf

- Biswajit
:-)
TwoProc
Honored Contributor

Re: How to forward certain traffic through one desired interfaces?

Tony's right:
Set up two different IP's.

You access your APP with one IP, and your buddy accesses everything via the other IP. Of course your hosts files would probably have different host names per IP address.
for server "dbserv1" you could have host name
"dbserv1a" for you, and "dbserv1b" for other guy.
Then, have all of the references by one application using dbserv1a, and the other application dbserv1b.

I do the same thing as this for Oracle Databases and it works quite well. There's really nothing to PREVENT traffic from going to a different IP if you call the service from the wrong IP. It's just how you set up everything that references an IP address or host name.
We are the people our parents warned us about --Jimmy Buffett
Ron Kinner
Honored Contributor
Solution

Re: How to forward certain traffic through one desired interfaces?

As long as your stuff is only reachable from the one NIC and your buddy's stuff is only reachable from the other then there is no problem.

If both of you are talking to the same IP address there is no way to separate the traffic since the routing table will decide how to get there and which Nic to use.

Ron
Carlos Yáñez
Frequent Advisor

Re: How to forward certain traffic through one desired interfaces?

Thanks!