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
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
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
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
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
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
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
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
:(
---------- 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
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
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
LES(8) Maintenance Commands LES(8)
NAME
les, bus - ATM LAN Emulation service demons
SYNOPSIS
lecs [-l listen_address] [-f configuration_file] [-d ]
DESCRIPTION
LE Service consists of three components: LAN Emulation Configuration Server (lecs), LAN Emulation Server ( les(8)) and Broadcast and
Unknown Server (bus(8)).
Lecs implements the distribution of LECs to different emulated LANs. This is done by giving different LAN Emulation Server ATM addresses to
LECs. Distribution is based on lecs's configuration database and information provided by the LE client. It is not required that a lecs
exists for all emulated LANs. It is possible to bypass this configuration phase by directly telling ATM address of the les(8) to the LEC.
Configuration file example for lecs:
# Our ATM address (should be included to differentiate us from
# e.g. LEC)
# Must be before ELAN definitions
470023000000030300010002010020ea000ae905
# ELAN name is inside brackets.
# Parameters below are for Ethernet type LE (Linux & almost all
# other LE clients)
[tut-lane1]
# Address of the LES
LES:=470023000000030300010002010020ea000ae901
# 802_3 or 802_5 (802_3 = Ethernet)
Type:=802_3
# 1515, 4544, 9234 or 18190 (1516= Ethernet)
Max_Frame:=1516
# ATM address for hosts that are guided to this ELAN.
# Wildcard is x or X.
470023000000030300010002010020ea0005aax0
470023000000030000010002010020ea0005bx00
47.002300000003030001000201.00603E2FDX23.00
470023000000030300010002010020ea000Xxx00
DEFAULT
# Another ELAN, which has empty name
[asdf]
# This directive sets this elan as the default i.e. it will be
# included if LEC's configure request could not be matched to
# other ELANs
#DEFAULT
LES= 470023000000030300010002010020ea000ae902
Type=Ethernet
Rules for finding ELAN definitions using information provided in LE_CONFIGURE_REQUEST and the configuration file are as follows:
1. Find an entry where ELAN-NAME matches exactly and an
ATM address of the LEC is found in ELAN definition.
These are to match exactly with the information given in
LE_CONFIGURE_REQUEST. If ELAN-NAME is found, but ATM
address doesn't match then reject with reason "Permission
denied".
2. Search for first ELAN which matches in type of emulated LAN,
maximum frame size and ATM address of the LEC.
3. If matching ELAN was not found, return default ELAN
definitions.
4. No match, so request is rejected with reason "No
Configuration".
SIGHUP restarts the server.
OPTIONS
-d Reads the configuration file, dumps its contents and exits.
-l listen_address
Use the listen_address to where wait connections.
-f configuration_file
Use the specified configuration file instead of .lecs_conf.
FILES
.lecs_conf configuration file
BUGS
Undocumented.
AUTHOR
Marko Kiiskila, TUT <carnil@cs.tut.fi>
SEE ALSO
les(8), atmsigd(8), zeppelin(8)
Linux Sep 11, 1996 LES(8)