Start again on the newbie's networking problem. Re: Need help (of course) setting up network

Shelagh Manton oneida at tpg.com.au
Tue Apr 27 12:54:30 UTC 2004


On Tue, 27 Apr 2004 08:06:35 +0200, antonio montagnani 
<anto.montagnani at virgilio.it> wrote:

My son tells me (we are working on this thing together) that I have an 
ethernet card and my external modem is on a serial port. Does this count? 
However, on the security issue, I don't know that hacking into our network 
would be the most interesting exercise, as my sons both assure me that it 
would put any self respecting hacker to sleep and their machines are full 
of school essays and compositions and no world shattering secrets at all. 
At this present time I would like to just get file tranfer between the 
machines up and running. Maybe later worry about letting them on the net, 
after all they can use my machine to do so.

I tried to install swat but something is missing or in another directory, 
because when I use the rpm install thing it tells me that it can't find 
samba 3. I'm sure that I have it because I did a complete install of 
everything from the CDs and there is a smb file that I found once in /etc. 
that looked like the one described in a book I bought to help me. I also 
have downloaded webmin which looks good but I have yet to install it. I 
hope it explains things like samba shares and the syntax for entering these 
mysteries. Are they things I want to share or can they be things the other 
machine wants to share? And if so how do I put it into the configuration 
gui? These are the thngs I have trouble with. (I also don't understand card 
game rules and can't add up 2 digit numbers in my head 'cause that means 
remembering numbers to carry over, and they disappear in the short time 
from one calculation to the next. Maybe it's all related!)

Shelagh

Should I find the relevant files and copy them so you can see where I stand 
at the present time?
(should I change the names to protect the innnocent?)

SOM
>
> Internet sharig and file sharing are two completely separate issues.
>
> 1) I am on a hub and I have two separate cards (one for the Internet and 
> one for home/office): setting is much easier and safer, and traffic is 
> completely separate.Adding a card is cheap and easy.
> You set the first card to Internet and try it: if it works you set the 
> network parameters on second card.
> But you have to tell the machine that is a router (see file 
> /etc/systcl.con)
>
> kernel.sysrq=0
> net.ipv4.ip_forward=1
> net.ipv4.conf.default.rp_filter=1
> kernel.core_uses_pid=1
>
> At this point you must tell the machine that must do some NAT (Network 
> address translation) by setting appropriate iptables file in 
> /etc/sysconfig
> This is mine...with eth0 card to the internal and ppp0 as Internet 
> connection
>
> # Firewall configuration written by lokkit
> # Manual customization of this file is not recommended.
> # Note: ifup-post will punch the current nameservers through the
> #       firewall; such entries will *not* be listed here.
> *filter
> :FORWARD DROP [0:0]
> :INPUT DROP [0:0]
> :OUTPUT ACCEPT [0:0]
> -A INPUT -i lo -j ACCEPT
> -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> -A FORWARD -i eth0 -j ACCEPT
> -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> -A INPUT -i eth0 -j ACCEPT
> COMMIT
> # Generated by webmin
> *mangle
> :FORWARD ACCEPT [0:0]
> :INPUT ACCEPT [0:0]
> :OUTPUT ACCEPT [0:0]
> :PREROUTING ACCEPT [0:0]
> :POSTROUTING ACCEPT [0:0]
> COMMIT
> # Completed
> # Generated by webmin
> *nat
> :PREROUTING ACCEPT [0:0]
> :OUTPUT ACCEPT [0:0]
> :POSTROUTING ACCEPT [0:0]
> -A POSTROUTING -o ppp0 -j MASQUERADE
> COMMIT
> # Completed
>
> Samba configuration in a separate message after confirmation of 
> success!!!
>
> In any case I suggest to Install Webmin (that you can download at 
> Www.webmin.com)



-- 
"First, do no harm" J.Holt





More information about the fedora-list mailing list