David wrote:
> Just got the network setup, ran the connection sharing wizard, but it
> doesn't work! Is there some permission or something that needs to be
> done on the other computer?
>
>
>
Got it working, but something else happened when changed something to
get it working.
I modified to files for the Masquerading, I think i should have only
done the second one. Doesn't this kernel use iptables and not ipchains?
This was what I changed in rc.firewall.inet_sharing-2.2 for my IP on
the other computer.->
**************************************************
# Enable simple IP forwarding and Masquerading
#
# NOTE: The following is an example for an internal LAN address in the
192.168.0.x
# network with a 255.255.255.0 or a "24" bit subnet mask.
#
# Please change this network number and subnet mask to match
your internal LAN setup
#
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.0.2/24 -j MASQ
*************************************************
In rc.firewall.inet_sharing-2.4 I changed only Masquerade and not
forward. Not sure if I should have done forward yet though.
**************************************************
# In the NAT table (-t nat), Append a rule (-A) after routing (POSTROUTING)
# which says to MASQUERADE the connection (-j MASQUERADE).
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.2/24 -j MASQUERADE
# Allows forwarding specifically to our LAN
/sbin/iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
***************************************************
I can figure this out since I got the internet sharing working now, but
what happened after I modified these and rebooted was weird. The Gnome
Desktop had Nautilus Icons on it. The preferences for Nautilus in
Preferences/Windows & Desktop had an option to use Nautilus to draw the
desktop or use your home folder. I wrote up a bug #4735 that that choice
would disappear under a certain circumstance. Well I have another now,
cause after doing this above it disappeared again and the desktop icons
are just paper icons that don't work. Can't change it back either cause
the selection in preferences is gone. Have to recreate the user or
something. Maybe when I put rc.firewall.init_sharing-2.2 back to
original and only modify 2.4 it will work again. We'll see.
Two more things:
Do you have to run the connection sharing wizard on both computers to
get it to work. I did, but it made my 192.168.0.2 address to 192.168.0.1
and I had to change it back manually. I think you only need to run it on
the one connected, but wasn't sure since it wasn't working because:
Shouldn't the connection wizard (maybe a wishlist) as for addresses that
are allowed to share, that way it would be necessary to manually do it
like I had to?