LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-04-2003, 11:23 PM   #1
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Rep: Reputation: 15
Unhappy Port forward help please


I have searched the forum, there are some topic talking about iptables that seems could do what I needed.

What I am doing is: I want to run my web server on 8080 by using another userid other then root. But port 80 will not available for a regular user id. Then I think I need a port forward, forward a request from 80 to port 8080.

I tried a couple times, but it it just not working for me.

Can somebody please write the command down here?
 
Old 05-05-2003, 06:30 AM   #2
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
why it will not allow to let u run on port 80. can't u specify to do anyway have a look at
http://kreiger.linuxgods.com/kiki/?P...with+netfilter
 
Old 05-05-2003, 08:53 AM   #3
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
The error information is:
2003-05-05 07:51:10,107 : Http11Protocol.init : Error initializing endpoint
java.net.BindException: Permission denied:80

With root id as the service id it is okay.
 
Old 05-05-2003, 10:51 AM   #4
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
iptables is so hard to understand (8-[

I will keep trying. I do not have too long expirence on Linux
 
Old 05-05-2003, 10:52 AM   #5
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
If you happened have done samething, please let me know what you have done.
 
Old 05-05-2003, 01:19 PM   #6
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
I got it working!

here is my answer: to the same machine from 80 to 8080:

iptables -t nat -I PREROUTING 1 -p tcp --dport 80 -j REDIRECT --to-port 8080
 
Old 05-05-2003, 01:20 PM   #7
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks mayankjohri. The information helps a lot.
 
  


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
forward port to another on the same IP 5amYan Linux - Security 2 08-23-2005 11:26 AM
Can forward port 80 but not others capbob Linux - Networking 4 05-20-2005 07:02 PM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 05:45 PM
port forward help please indy317 Linux - Networking 2 07-18-2003 02:21 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM


All times are GMT -5. The time now is 11:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration