LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-01-2015, 10:19 AM   #1
harish.golwilkar
LQ Newbie
 
Registered: Aug 2012
Location: india
Posts: 4

Rep: Reputation: Disabled
Redirect outgoing traffic


Hi All,

I am using Solaris 10.
I want to change the out going traffic.
Say
Server IP 10.10.10.1
App/DB server IP 10.10.20.1.
New IP of App/DB server 10.10.30.1.

The traffic flow should be like

10.10.10.1 -> 10.10.20.1 -> 10.10.30.1

10.10.20.1 IP is going to change and the Application which is hosted on 10.10.10.1 is pointing to 10.10.20.1 and Apps team do not have the source code.

Can someone please help.

Thanks,
Harish
 
Old 04-01-2015, 10:35 AM   #2
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
harish.golwilkar,

I am just guessing that you are running an Apache web front-end and that Apache should forward requests to the app-DB server on the back-end. If so, there may be changes that you need to make to your httpd.conf and maybe your tomcat config files.

You can get some idea of what your Apache server is doing by reading the httpd.conf.

Quote:
find / -name httpd.conf
When you find httpd.conf, edit it with vi or nano.
 
Old 04-01-2015, 01:09 PM   #3
harish.golwilkar
LQ Newbie
 
Registered: Aug 2012
Location: india
Posts: 4

Original Poster
Rep: Reputation: Disabled
it is combination of Apache and Java, code is in Java.
 
Old 04-02-2015, 01:38 AM   #4
harish.golwilkar
LQ Newbie
 
Registered: Aug 2012
Location: india
Posts: 4

Original Poster
Rep: Reputation: Disabled
say X is the server ip which sends traffic to another server which has Y IP.
Now we are going to change Y IP with Z.
Application team do not have the source code to update the new Z ip in their code.
Can we do something at OS level so that traffic can be redirected to Z instead of Y ?
 
Old 04-02-2015, 04:13 AM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
you could use the -j DNAT target of an iptables rule.
Quote:

iptables -d 10.10.20.1 -j DNAT --to 10.10.30.1
check out the man page for the correct syntax
 
Old 04-02-2015, 03:03 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can't as iptables is Linux specific. The alternative is ipfilter: http://www.linuxquestions.org/questi...tables-611225/
 
Old 04-07-2015, 04:02 AM   #7
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
My bad. Forgot that it is solaris.
 
  


Reply



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
exim redirect outgoing mail for one domain to another server RKris Linux - Server 4 10-02-2009 06:00 AM
[HELP] redirect traffic to spesific port based on Traffic Content using iptables summersgone Linux - Server 2 06-22-2009 11:26 AM
Redirect outgoing http requests with IPtables highllamas Linux - Security 1 06-17-2009 08:07 AM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Redirect outgoing mail Haiyadragon Linux - Software 7 11-28-2007 12:11 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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