Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Here is the story... I have a static public ip from my isp X.X.X.X my gateway given by my isp is A.B.C.D I want to share my net connection using the private ip block 192.168.0.0/24 for 4 to 5 pcs in my home. There, one of the PC is my mail server providing pop3, webmail, smtp and secure webmail (ports 25, 80, 110, 443). My linux box for NAT is running under RH9 and having iptables. Now, The eth0 is the WAN interface, ip: X.X.X.X, gw A.B.C.D eth1 is the LAN interface, ip 192.168.0.1/24, (no gw, since default gw is A.B.C.D) I need all the pcs from the LAN to have the net connection. By the same time, ports should be forwarded to the mail server (192.168.0.4) for ppl from the WAN to access and check and send mail. I am now diong it somehow, but it's not working well. My LAN users can not send mail using the server located inside the LAN through WAN. Means when they use webmail.mydomain.org from lan, they get nothing. but if they try from the outside of the lan, they can get it. I can solve it using a dns in local lan. but is there any way to do it directly?? I previously used a device from D-Link that provided me the NAT and virtual server functions. Then i could do it. But I can not do like the previous. Now i just want to replace the device with a linux box. Can any one tell me what can i do?? i need a script just simple... and simple.... plz help me....
As I can understand you meean to say that the only problem is in accessing the mail server from the local LAN..
The Clients should access the mail server, with the local lan's IP(192.168.0.4), then it would be OK I guess.
Ya.. but what i want is to access it using the FQDN instead of the ip. Is there any way?? Except setting up a local dns mapped to the local ip.
Also I need a script just to understand and compare with mine... And this script will provide:-
1.) NAT for sharing the connection.
2.) Port forwarding (25, 110) to 192.168.0.4 [x.x.x.x:25 --->Fwd to ---->192.168.0.4:25
The script will provide only these two things. No other special things. The rest of the seciruty will be set up later.
Can any one??