You are not logged in.

#1 2006-08-14 22:11:53

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

simple question [solved]

My friend is setting up a server. He's running the base packages, openssh, apache, mysql, and php. The sshd and httpd daemons are running and functional, and he's using ALL:ALL in his /etc/hosts.allow. Everything works perfectly within his LAN. He can putty in via SSL and transfer files to and from via SFTP, and see his Apache page from another comp on the network through hypertext. However, he can't do any of the above from outside his LAN. Any suggestions?

Offline

#2 2006-08-14 22:27:31

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: simple question [solved]

My guess is that the router is blocking the relevant ports. log into the router and check out port forwarding.

Dusty

Offline

#3 2006-08-15 00:35:37

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: simple question [solved]

Nizerifin wrote:

Port fowarding requires a static ip address.  How can I do that for my linux box?

You don't have to use DHCP.  Lets say your router DHCP range is 192.168.1.2 to 192.168.1.50, you can set any IP statically outside that range (on the same subnet).

Instead of eth0="dhcp" in rc.conf, you can do:

eth0="eth0 192.168.1.60 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)

Offline

#4 2006-08-15 12:20:38

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: simple question [solved]

Hey thanks everyone! We got it all figured out, and the server works great now!

Offline

Board footer

Powered by FluxBB