All of lore.kernel.org
 help / color / mirror / Atom feed
* portforwarding
@ 2003-05-05 23:32 Eric Marchionni
  2003-05-05 23:58 ` portforwarding Paul
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Marchionni @ 2003-05-05 23:32 UTC (permalink / raw)
  To: netfilter

hi list

my buddie is trying to get his webserver working behind his 
debian router.
this is what i gave him (we tried once with --dport and once with 
--dports):

iptables -t nat -A PREROUTING -i $WAN_IFACE -p tcp -m multiport 
--dports 22,80 -j DNAT --to-destination $SERVER

i'm not able to connect to his webserver with http://his_ip/
what am i doing false? got any ideas?

thanx
eric



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: portforwarding
  2003-05-05 23:32 portforwarding Eric Marchionni
@ 2003-05-05 23:58 ` Paul
  0 siblings, 0 replies; 2+ messages in thread
From: Paul @ 2003-05-05 23:58 UTC (permalink / raw)
  To: Eric Marchionni, netfilter

well make sure apache is first installed correctly and
loads up just fine..  Try doing an  apache -S  to make
sure it loads fine

secondly theres 2 things needing to be done

first need to forward the port

iptables -t nat -A PREROUTING -d externalip -p tcp
--dport 80 -j DNAT --to webserverip:80

and also make sure the port you want is opened in your
FORWARD as well

iptables -A FORWARD -p tcp --dport 80 -j ACCEPT


will prob have to change around those cmds a lil bit
to suit your needs, but hopefully that gets you on the
right track.

-paul

--- Eric Marchionni <mailing-lists@gmx.ch> wrote:
> hi list
> 
> my buddie is trying to get his webserver working
> behind his 
> debian router.
> this is what i gave him (we tried once with --dport
> and once with 
> --dports):
> 
> iptables -t nat -A PREROUTING -i $WAN_IFACE -p tcp
> -m multiport 
> --dports 22,80 -j DNAT --to-destination $SERVER
> 
> i'm not able to connect to his webserver with
> http://his_ip/
> what am i doing false? got any ideas?
> 
> thanx
> eric
> 
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-05 23:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-05 23:32 portforwarding Eric Marchionni
2003-05-05 23:58 ` portforwarding Paul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.