View previous topic :: View next topic |
Author |
Message |
Pardok n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2004 Posts: 29
|
Posted: Tue Mar 30, 2004 8:37 am Post subject: Need help with a WAN/LAN? Server |
|
|
Ok, I hope nobody gets angry with me. I'm a recent convert to Gentoo and I just love it. I used to use Mandrake and never had to edit or configure my network (including my hosts file, conf.d/net file, and resolv.conf) but...Gentoo is just amazing.
I'm trying to figure out all of this networking stuff though.
I'd like to experiment with a Mail server, etc, and have read through most of the guides (what to emerge, how to configure it, what security percautions to take). However, call me obtuse, call me dense, but I am clueless as to what IP/DNS/Broadcast IP to use.
I have a single machine running Gentoo as my desktop and as a server. I'm running a Samba server through it, which is working just fine.
I connect to the internet through a D-Link DI614+ Wireless Router (although, my box is wired). I route my broadcast IP (the Router's) through port 8080 to the internal ip of my box. I've read through countless Man's, on-line documents, and have searched the forums.
I guess my question is too simple that it's just assumed that everyone will know. Nonetheless, I'm clueless.
Here is my info:
Internal
IP: 192.168.0.1
iface_eth0="dhcp"
Subnet Mask: 255.255.255.0
Hosts file: 127.0.0.1 localhost
192.168.0.1 oedipa.trystero oedipa
Router Info:
Broadcast IP from Router: 24.9.206.76 (routed through port 8080 in order to connect to internal IP at port 80)
Subnet Mask: 255.255.240.0
Default Gateway: 24.9.192.1
DNS: 216.148.227.68 204.127.202.4
Ok, I know network terminology and how to setup simple home-networks, but I'm not sure which numbers I should use when setting up a mail-server.
Can someone help me out or at least point me to an idiot's guide? Thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andrew_j_w Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9842758604113ad3aee8fa.gif)
Joined: 28 Jun 2003 Posts: 534 Location: York, UK
|
Posted: Tue Mar 30, 2004 8:48 am Post subject: |
|
|
If you're routing from the external ip address to your internal address then all servers running on your machine should be set to your internal ip address.
When forwarding the packets on your router will change their destination ip address to the internal address - your internal machine will not know that the packets have been forwarded on.
Sorry if that's a bit unclear but hope it helps anyway,
Andrew |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Pardok n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2004 Posts: 29
|
Posted: Tue Mar 30, 2004 9:24 am Post subject: |
|
|
Thanks for the quick reply Andrew.
I've been following this guide:
https://forums.gentoo.org/viewtopic.php?t=56633&highlight=network+mail
with added input from this guide:
http://www.linuxdevcenter.com/pub/a/linux/2003/09/25/advanced_mail_server.html
I guess my main question stems from this part:
Code: | Chart 2.1
.--------------------------------------------,
| Needed || Server | Workstation | Chart 2.1 - Server Info
|===========||===============================|
| Network || 192.168.2.0/24 | - Copy paste this code
|-----------||-------------------------------| block into a text editor
| IP || 192.168.2.2 | 192.168.2.3 | editor for reference
|-----------||---------------|---------------| later on.
| Hostname || Chimera | Illusion |
|-----------||-------------------------------| - Substitute the values
| Domain || apparition.ath.cx | here with your values
|-----------||-------------------------------|
| Username || 21s-beo | N/A |
|-----------||---------------|---------------|
| Password || 21s-pass123 | N/A |
'--------------------------------------------' |
What exactly is my network? is it 192.168.0.1/24? If not, how do I find out the correct address?
What is the IP of my server? The same as my workstation (192.168.0.1)?
The Hostname for server and workstation would be what I set when I installed Gentoo correct? That is, hostname would be "echo oedipa > /etc/hostname" and "echo trystero > /etc/dnsdomainname" Thus, hostname would be oedipa domain tryster.
If I sign up for a DynDNS it would be whatever name I chose. However, how would I hook my external IP to the DNS name?
Thanks for any help. I greatly appreciate it. Sorry for the asinine questions. ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|