Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Aug 2002 05:30:45 +0200
From:      "Roger 'Rocky' Vetterberg" <listsub@401.cx>
To:        root@unixhideout.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: IPFW question.
Message-ID:  <3D509465.4040207@401.cx>
References:  <1146.192.168.1.10.1028660420.squirrel@email.unixhideout.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike wrote:
> I have a network that goes something like this.
> 
> 
>                       static ip addy.  192.*10   192.*20   192.*30 192.*40
> 192.*50
> (INTERNET)==firewallrouter=-server1=-server2=-client=-client=-client
>                                            FBSD4.6   FBSD4.6    XP      
> XP        XP
>                                             IPFW
> 
> 
> Server one and server 2 are FreeBSD4.6-STABLE, all the clients, (desktops)
> are windows XP (Sorry FreeBSD is about as far from a desktop as i am a
> good schematic writer.. Although i do occasionally startX, FreeBSD can
> stick with gnome gnibbles and hangman when it comes to games. When im
> doing my hardcore gaming, its XP all the way.)
> 
> server1 is unixhideout.com and it runs just about everything. server2 is a
> backup server. Its only purpose is to connect to server1 using cvsup, and
> backup and archive important directories for me in case of a *gasp*
> FreeBSD crash?!? (always expect the worst before it happens right?) My
> question is this. I want to allow free shells for my site so users can
> compile and test code. I do not want to give shells on my webserver. I
> want to use IPFW divert, which "server1" has installed, to have any ssh
> traffic be directed to server2 instead of server1. Now heres the problem
> as i see it. How do i open two port 22 ports, in my router? The only other
> solution as i see it is to get another static ip, and use my second
> router, which is in a closet currently, or, simply enable TELNET on server
> 2. and port forward that.. But even then i would like it to have its own
> webpage , then they can test their own CGI/PERL and PHP scripts, so i
> would simply run into the same problem with port 80. Any ideas or input
> would be great.
> 
> 

If you have only one static IP, you have only one port 22. Simple 
as that.
Get another ip, or start a SSH daemon on another port, say 222.
Same goes for webserver. Since you only have one port 80 you have 
to get another ip or run the webserver on another port.

--
R




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D509465.4040207>