Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new linux machine/server and router questions

Status
Not open for further replies.

jeffvb9

Technical User
Nov 14, 2002
44
US
Hello...New to all this and this is my first time setting up a server. I have a handle on all the services on my RH 8.0 server I believe. My questions are:

1)How do I set up my router to work in conjuction with my linux box, xp box, and windows 2000 laptop. I have internet access through roadrunner cable and its DHCP. I was told I can lock down the ip address my manually adding it to the NIC config.
2)To be able to be a web server do I need to register a domain with a registrar. Also, what will be my ip address if my internet service is DHCP?
3)How can I keep anonymous users who log onto my linux server in either /var/ftp/incoming and /var/ftp/outgoing? I want them to be able to mkdir inside /incoming if they need to but I dont want them to be able to get into any other directories.
4)I want one person other than myself to have an actual ftp login, do I just add them as a user on the system??

Thanks!!
 

1) You don't have to use DHCP. Just assign an ip number to your NIC.

2) Not really. But you can only access it with the ip number if you don't have a DNS. You need to request a static ip number from your ISP.

3) Change their homedir to /var/ftp/incoming and their shell to rbash (bash -r).

4) Yes and add unwanted ftp users to /etc/ftpaccess

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
You will need a registered domain name if you want people to access your server. You could access it via your ip address but since you have a dynamic ip, it may change every few months and you would have to tell everybody every time it changes. To avoid this mess, you can get your own domain name from a registrar such as for about $8.00 a year. Then sign up with a dns service such as and you can point your domain to your ip. That way if the ip changes, you can change it in a couple minutes and none of your users will have to change anything because they will be using your domain name. The router is easy to setup. Set it to DHCP for your internet connection and point to your ISP's dns servers for dns on the WAN side. You will have the otion of using static ip addresses on the LAN side. You should do this for your server at least. For your network settings on all machines, point to the router's internal ip (i.e. 192.168.0.1) for the gateway and dns server IPs.
 
Ok...I need some further clarification.

I set my WAN to DHCP and pointed DNS to my ISP's DNS servers.

What exactly do you mean about setting my server to a static ip address? Which IP address?
I have pointed my xp machine to the gateway of the internal router ip 192.168.1.1. Its ip address is 192.168.1.100.

When I click on my network config for my linux box eth0 comes up and I click edit. It has the name of the machine in the hostname field. Automatically obtain DNS information from provider is checked. Do I need to check 'Statically set IP address'? Right now its on DHCP. What would I fill in for 'Address', 'Subnet Mask', 'Default Gateway'? Its ip address now is 192.168.1.102.
 

Well, I don't know how your router works but if you want to set up reverse NAT from the outside to your web server then you would probably need to set your ip address to static.

Just take the ip number you've been assigned (192.168.1.102), subnet mask 255.255.255.0 and gateway 192.168.1.1, set it to statically set ip address and fill in the blanks.

You also need to tell your router to send requests to port 80 to your web server.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top