Sponsored Content
Full Discussion: Configuration for a home LAN
Special Forums IP Networking Configuration for a home LAN Post 31171 by cbkihong on Sunday 3rd of November 2002 04:40:16 AM
Old 11-03-2002
Configuration for a home LAN

I would like to see if anybody can give me any insights on this issue. Possibly somebody may have posted something like this before but provided I couldn't find any matching threads in the forum search, I post it here.

I'm on GNU/Linux with iptables. I have a home LAN with the gateway connected to the Internet using DHCP (dhcpcd). The DNS, a public IP and other details are thus obtained from ISP and dynamically set this way (i.e. the gateway has a dynamic IP).

The internal hosts are manually configured with static private IPs. I have added rules to the gateway's init script to invoke iptables' NAT feature so that internal hosts can now access the Internet. However, the internal hosts do not have the DNS lookup servers configured, so only IPs can be specified as addresses. It works, just pretty inconvenient.

As a temporary solution I looked up the ISP's DNS server addresses and statically configure them individually on each internal host. However, in order to alleviate long-term configuration trouble from changing ISPs or the ISP suddenly changing the addresses of DNS servers, I would like to run a DHCP server on the gateway and have the DNS addresses obtained from dhcpcd available to the internal hosts on startup or whenever the DNS IP changes.

My question is: is this possible or would it be tedious to set up?
 

10 More Discussions You Might Find Interesting

1. Solaris

Help me to Build a Home LAN Please.

Hi All, I really hope you can provide me with some help or assitance on this topic: I'm not an expert on Unix neither with networking tasks, I just have the basic level on Unix commands and shell scripting fundamentals, but I want to take seriously this opportinuty to put my hands on this... (6 Replies)
Discussion started by: mosqueda_albert
6 Replies

2. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies

3. UNIX for Advanced & Expert Users

Problem: Automounting Home directory for nis & nfs configuration doesn't work

Hi all, First of all, i am so sorry about my bad level in English writing. I have some problem in linux and i hope the experts of this forum to help me if they have enough time to reply to me. I have a scenario of configuring NIS and NFS in Redhat Linux environment such that user can login... (0 Replies)
Discussion started by: pioneer
0 Replies

4. Programming

how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist

I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories. but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Discussion started by: platinumedge
8 Replies

5. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

6. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

7. Red Hat

Different hostnames with reboot while lan cable, no lan cable

I am facing strange problem regarding hostname on my Linux(2.6.18-164.el5xen x86_64 GNU/Linux), the hostname changes if reboot with lan cable and with NO lan cable Reboot with lan cable: The hostname is ubunut Unable to connect Oracle database using sqlplus some times database is not... (2 Replies)
Discussion started by: LinuxLearner
2 Replies

8. Shell Programming and Scripting

cp -p /home/* home/exp/*.date not working please help

:( ---------- Post updated at 01:51 AM ---------- Previous update was at 01:50 AM ---------- Not working ---------- Post updated at 02:04 AM ---------- Previous update was at 01:51 AM ---------- cp -p /home/* home/exp/*.`date` i am using this (4 Replies)
Discussion started by: rishiraaz
4 Replies

9. Red Hat

sftp configuration | to lock users to their home folder.

In generally I use vsftp but I want to improve our security so I decide to use sftp instead of vsftp. We know that ssh,scp and sftp are in openssh server. How can I lock only sftp user to their home folder? And to prevent some users for sftp like root as such in vsftp daemon? (3 Replies)
Discussion started by: getrue
3 Replies

10. IP Networking

Lan Turtle configuration

Hi Chaps I have recently bought a Lan Turtle, a covert Systems Administration and Penetration Testing tool providing stealth remote access, network intelligence gathering, and man-in-the-middle monitoring capabilities. Housed within a generic "USB Ethernet Adapter" case, the LAN Turtle's covert... (1 Reply)
Discussion started by: kanalia
1 Replies
RARPD(8)						      System Manager's Manual							  RARPD(8)

NAME
rarpd - reverse address resolution protocol daemon SYNOPSIS
rarpd [-d] DESCRIPTION
Rarpd listens on the ethernet for broadcast packets asking for reverse address resolution. These packets are sent by hosts at boot time to find out their IP address. Rarpd looks up the six octet ethernet number in the /etc/ethers file finding a host name. This name is trans- lated to the IP address of the host by a DNS lookup. The IP address is then sent to the host. Before rarpd can start its service it first finds out what the IP addresses of the ethernets are. It will look through /etc/ethers to map the ethernet addresses to host names. It then uses /etc/hosts to map the host names to IP addresses. If this lookup fails then several RARP requests are broadcasted in the hope that some RARP server knows the addresses. The IP addresses are eventually set in the same way as ifconfig(8). (The address is not changed if already set with ifconfig.) Note that the host names in the ethers and hosts files must match exactly. The DNS can not be used yet, so a simple name can't be translated to a fully qualified name. Rarpd exits after startup if there are no active ethernets, or if there is no ethers file. Warning! Sun diskless workstations assume that the first RARP server that answers is the host they are to boot from. For this to work all other Sun RARP servers delay their answer if they are not also the requestors boot server. The Minix rarpd does not have this kludge so it will happily engage the Sun boot server to see who can answer the client first. Unless your Minix host can actually serve a Sun diskless client, it is better not to list any more hosts in the ethers file than necessary. OPTIONS
-d Turns on debugging messages. Debugging can also be turned on at runtime by sending signal SIGUSR1 or turned off with SIGUSR2. SEE ALSO
ifconfig(8), ethers(5), hosts(5), set_net_default(8), boot(8), inetd(8), irdpd(8), nonamed(8). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) RARPD(8)
All times are GMT -4. The time now is 02:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy