LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-29-2011, 01:33 AM   #1
cheers
Member
 
Registered: Oct 2010
Posts: 39

Rep: Reputation: 0
Thumbs down port forwarding


HI.

i have to do port forwarding between 10.71.0.228 (port 80) and 10.142.201.71 (port 8090).

I have edited file
cat /etc/ipf/ipnat.conf and put entry
rdr bge0 10.71.0.228 port 80 -> 10.142.201.71 port 8090 tcp

edited cat /etc/ipf/ipfnat.conf and put entry
rdr bge0 10.71.0.228 port 80 -> 10.142.201.71 port 8090 tcp

and edited cat /etc/ipf/ipf.conf and put entry
pass in quick log proto tcp from 10.71.0.228 port = 80 to 10.142.201.71 port = 8090

And enabled the service svcadm enable ipfilter but not working.

If i browse the http:10.71.0.228:80 it opens 10.142.201.71 browsing page at port 8090 but not working.


Kindly help us is there any command needs to be execute


Thanks..
 
Old 06-29-2011, 03:00 AM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
are you sure the edit you made in /etc/ipf/ipfnat.conf covers the 2 ways of communication?
i.e. does it cover the return path from 10.142.201.71 to your machine? NB: I'm not an expert on NAT!
I would have used an ssh tunnel to achieve the same result:
from the machine where you have firefox or other browser running, in a terminal, run this:
Code:
ssh -f -N -L2081:10.142.201.71:8090 root@10.71.0.228
then access http://localhost:2081

NB: it's different from your NAT architecture, but at least it lets you access the server.

Last edited by 16pide; 06-29-2011 at 03:01 AM. Reason: typos
 
Old 06-30-2011, 12:28 AM   #3
cheers
Member
 
Registered: Oct 2010
Posts: 39

Original Poster
Rep: Reputation: 0
we done but if ssh refresh the page does not open
 
Old 06-30-2011, 01:32 AM   #4
rk032011
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
I also needed the functionality. ssh port forwarding works, but the web page automatically refreshes every 10 seconds which is annoying. Can you anybody tell me how to stop this auto refresh every 10 secs or increase the time, please?
 
  


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
Warning: remote port forwarding failed for listen port 7869 windstory Linux - Newbie 1 08-02-2010 10:07 AM
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 03:27 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM

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

All times are GMT -5. The time now is 04:39 PM.

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