Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
my puter (samba server/router) is using firestarter to set NAT and to set up the firewall. it gets its ip dynamically from my ISP, and the second network interface has a static ip address (192.168.1.1). at first i had the machine named localhost.localdomain, but it automatically picked up the name cab14-69.1scom.net from my ISP so i changed the name in the network file to this. i have my hosts file set as:
127.0.0.1 cab14-69.1scom.net localhost.localdomain localhost cab14-69
i think i'm having a problem configuring my /etc/hosts file correctly so that the intranet computers can ping my server with its localhosts name, cab14-69. so far no intranet computers can connect to my samba server.
i can't ping my server using "ping cab14-69", but i can ping using the ip address 192.168.1.1 or the full machine name cab14-69.1scom.net
is there a good way to get the current dynamic ip of the machine inside of /etc/hosts? or do i need to somehow alias the 192.168.1.1 ip to the server name...
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Is the /etc/hosts file on the machine that you are trying to ping?
If so that will not be of much help. The machine that is doing the pinging must also know what cab14-69 means. So the machine that is doing the pinging must have the IP of the ping-e with name listed in its own /etc/hosts for linux and lmhosts file under Windows.
Now if the samba server cannot be seen then is the ports that make the connection to it need to be open if running a firewall. If you need to open the ports make sure they are opened only on the lan side and not to the wan side of the linux router. If firestarter opens the ports to both interfaces then anyone can get into your system from the outside. Granted samba is mauch securer than the Windows Neighborhood side but the entire network becomes viewable.
Now if the samba server cannot be seen then is the ports that make the connection to it need to be open if running a firewall. If you need to open the ports make sure they are opened only on the lan side and not to the wan side of the linux router. If firestarter opens the ports to both interfaces then anyone can get into your system from the outside. Granted samba is mauch securer than the Windows Neighborhood side but the entire network becomes viewable.
Brian
your right, i needed to edit the inbound traffic policy to allow connections from hosts 192.168.1.1/24 (ip addresses: 192.168.1.1 thru 192.168.1.254). But since this was on my GREEN (eth0) Ethernet adapter i thought it should be open to all traffic, as is a Las Vegas whore!
now i can connect to my shares and ping the server using aliases.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
All machines have to have the aliases defined in either /etc/hosts for Linux or lmhosts file on Windows. You can create a common one and cut paste to all. That is the only way that is simply. Other way is setup a local DNS server that all machines use to look up the IPs you defined.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.