Configuration for a home LAN


 
Thread Tools Search this Thread
Special Forums IP Networking Configuration for a home LAN
# 1  
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?
# 2  
Old 11-03-2002
Well,

that's exactly what I did at home Smilie

My FreeBSD box is my home Gateway on a dial-up account and it is also configured as a DHCP server. This way my WinME ( Smilie )box and FreeBSD laptop can join the LAN as soon as they startup and have access to the net without any hassel! Smilie

It didn't take too long to configure - you just need to make sure the details in the DHCP config script are correct.

Give it a try ... I think it's a GREAT way to have the ol' home computers set up!

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question