:: HowburyPete <(E-Mail Removed)>
:: I have two pcs networked over win98se to a common broadband cable router.
I assume this means there are three machines total, one of which is running
win98se and sharing access to a cable modem to the others. I assume that
because if you had a cable *router*, you wouldn't be networking
"over win98se".
:: I simply can't fathom linux networking. I tinker with the ethernet
:: addresses till the cows come home - and sstill mandrake 9.1 won't
:: 'see' the other computer.
Well, if you had a cable router, you'd simply set both machines
to aquire their addresses automatically via DHCP, and let the
router hand out IP, netmask and gateway, all compatibly. Then
just plug your three machines into the cable router (that is
assuming it's the usual variety with a 4-port switch built in),
and the router into the cable modem, and there you go. Plug
it together, turn it on, and away you go.
If you really want to share the internet access via a win98se machine,
then you'll have more complicated things to deal with, depending on the
product you're using for shared access. But ignoring that for a moment,
and presuming you have a hub or switch into which you plug your two
linux machines, then you simply choose a subnet and two IPs on that
subnet (eg, 192.168.1.5 for one, and 192.168.1.6 for the other, and
255.255.255.0 for the netmask), bring up the machines, make sure their
firewalls allow access, and they should see each other, eg, via ping
and via any services you have started. It's really just that simple.
The rest of the complictaion is in what services to offer; eg, making
filesystem visible between the two linux systems involves setting
up nfs, and arranging to export and mount corresponding entries
on the two machines; on the other hand, you could start ssh services,
which would allow you to log into each machine from the other.
And of course, samba for interaction with any win98se machine
on the same net.
So. Unless you describe just *what* *kinds* of problems you are having,
and what things you've tried, it's hard to point to anything but generic
HOWTO files or textbooks.
: Arun Dev <(E-Mail Removed)>
: Open a console and as root do these two things: 1: cat
: /proc/sys/net/ipv4/ip_forward if 0 comes out do echo "1" >
: /proc/sys/net/ipv4/ip_forward [etc, etc]
That would be if the linux systems needed to do IP forwarding.
Which I don't see a cause for, unless the idea is to replace the
win98se internet sharing with the linux version. Which again,
points to the need to state a bit more precisely what you want
to accomplish, and what you've tried so far.
: For the more experienced: I'm stuck beween this naive approach and a
: simple but still not so foolish iptables script which I can keep on
: editing to get something reasonable and which I understand.
Well, other than just "look for iptables HOWTOs, textbooks,
and examples on the net", not much can be said unless you state
a bit more about what you're trying to accomplish. The first thing
you should look into is adding a firewall to the ouside access; there
are many ways of doing this. I must admit I myself am still stuck
in the mire of ipchains for my firewall... oh well. One script
that was given to me to start with is this
#!/bin/sh
case "$1" in
start)
echo "entering paranoid firewall mode"
ipchains -F input
# We trust ourselves, so allow anything in sent to the loopback address
ipchains -A input --interface lo -j ACCEPT
# Allow ICMP, but not redirects
ipchains -A input -p ICMP --icmp-type redirect -j DENY
ipchains -A input -p ICMP -j ACCEPT
# Allow packets from the DNS port
ipchains -A input -p UDP --source-port 53 -j ACCEPT
# block all protocols except TCP
ipchains -A input -p \! TCP -j DENY
# block TCP syns
ipchains -A input -p TCP --syn -j DENY
;;
stop)
echo "exiting paranoid firewall mode"
ipchains -F input
;;
*)
echo "Usage: paranoid [start|stop]"
exit 1
esac
exit 0
which I still use (with a few alterations) on my laptop, turning
on paranoid mode when I'm accessing things from an untrusted net,
and turning it off so I can remotely log in and such when I'm on
a trusted net. But again... it's still using ipchains. You can
update it to iptables use. The virtue in it is that it's very
simple and easy to understand, yet real-world enough to be useful.
It doesn't follow the most paranoid conventions (ie, deny everything
and make all other rules selectively accept things is a common
rule, but the above isn't that paranoid), but as I say: it's
simple and an interesting place to start.
Ah well. Hope this helps, and isn't too elementary or misleading.
Wayne Throop
(E-Mail Removed) http://sheol.org/throopw