|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ip and port forwarding in Solaris 10
Hi; I have the following issue: I have a Solaris server running an old applications which connects to an http server in other server at certain port. The thing is that the http server has changed its ip and port and the addres in the app is hard coded and touching the app by now is out of the question. I'm looking for a way to tell the Solaris which runs the app, ok; everything that goes out to the old ip/port please forward to the new ip/port. I've been doing some research and the closest case I found had this solution: "Here is the final solution: Add the following rule to /etc/ipf/ipfnat.conf Code:
rdr dnet0 from 10.218.141.156/32 to 10.218.147.210/32 port = 1521 -> 10.218.146.230 port 1521 tcp and execute Code:
ipnat -CFf /etc/ipf/ipfnat.conf " This solution comes from the post: Port forwarding I added the following rule to the ipnat.conf file: Code:
root@f1m12 # ipnat -l List of active MAP/Redirect filters: rdr ce0 from any to 192.168.155.30/32 port = 8080 -> 172.20.40.22 port 8081 tcp/udp Where the first ip/port are the old ones and the second are the new ones, but get no answer. If I telnet to the new ip/port I can connect to the httpserver, but if I telnet to the old ones I get no answer like if it was not making the forwarding. Here's my solaris: Code:
root@f1m12 # uname -a SunOS f1m12 5.10 Generic_127111-11 sun4u sparc SUNW,Sun-Fire-V490 This is my ipf config: root@f1m12 # ipfstat -io empty list for ipfilter(out) empty list for ipfilter(in) What am I doing wrong???? Thanks in advance. Regards. Pablo. Last edited by pludi; 12-24-2009 at 01:02 AM.. Reason: code tags, please... |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Port/IP Forwarding in Solaris 10.0 | vikas027 | Solaris | 6 | 10-18-2009 05:59 AM |
| Port forwarding | slash_blog | UNIX for Advanced & Expert Users | 2 | 06-20-2008 07:29 AM |
| Port/ IP Forwarding AIX5.3 | Husam | AIX | 1 | 03-26-2008 03:34 AM |
| port forwarding | imloaded24_7 | UNIX for Advanced & Expert Users | 1 | 11-21-2006 10:36 AM |
| iptables: forwarding a port | meeps | UNIX for Dummies Questions & Answers | 1 | 11-23-2003 02:37 AM |