Share internet connection/make a small server
Antonio Olivares
olivares14031 at yahoo.com
Tue Aug 30 23:06:25 UTC 2005
--- Alexander Dalloz <ad+lists at uni-x.org> wrote:
> Am Di, den 30.08.2005 schrieb Antonio Olivares um
> 15:02:
>
> > > Make sure you have forwarding set on on the
> gateway
> > > host:
> > >
> > > $ cat /proc/sys/net/ipv4/ip_forward
> > >
> > > must print out "1" (without quotes). If it does
> not,
> > > then activate it in
> > > /etc/sysctl.conf and run "sysctl -p". Make too
> sure
> > > the gateway does NAT
> > > by an iptables rule like:
> > >
> > > iptables -A POSTROUTING -o eth0 -j MASQUERADE
> > >
> > > [eth0 should be in your case the outgoing
> device]
> >
> > eth0 is the incoming connection should eth1 be the
> > outgoing. I'm a little confused but getting
> there.
>
> The device given with -o <device> has to be the
> public net device.
>
> > [root at rio ~]# cat /proc/sys/net/ipv4/ip_forward
> > 1
>
> Ok.
>
> > [root at rio ~]# iptables -A POSTROUTING -o eth0 -j
> > MASQUERADE
> > iptables: No chain/target/match by that name
>
> Sorry, my fault. Above should have been for the NAT
> table (by default
> iptables takes the filter table):
>
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
The device that comes in is eth0 and the one that is
acting as the output is eth1 should the above command
be changed to eth1?
>
> > I have made most changes that Jeff and Alexander
> have
> > provided and I know that I am close as possible to
> > getting this thing going.
> > I tried to connect to the internet from within
> Windows
> > 98 machine and I get a DNS error and cannot
> connect.
>
> The NATed client has to know a valid DNS server and
> it's gateway is the
> NAT gateway host.
>
> > However, the ipconfig /all, ipconfig /release_all
> and
> > ipconfig /renew_all give the following
>
> > Windows 98 IP Configuration
>
> > 1 Ethernet adapter :
>
> > Description . . . . . . . . : 3Com 3C90x Ethernet
> > Adapter
> >
> > Physical Address. . . . . . : 00-C0-4F-73-25-42
> >
> > DHCP Enabled. . . . . . . . : Yes
> >
> > IP Address. . . . . . . . . : 192.168.100.200
> >
> > Subnet Mask . . . . . . . . : 255.255.255.0
> >
> > Default Gateway . . . . . . : 192.168.100.1
> >
> > DHCP Server . . . . . . . . : 192.168.100.1
> >
> > Primary WINS Server . . . . :
> >
> > Secondary WINS Server . . . :
> >
> > Lease Obtained. . . . . . . : 08 30 05 7:22:21 AM
> >
> > Lease Expires . . . . . . . : 08 31 05 7:22:21 AM
>
> So eth1 on the Fedora machine is your inner (LAN)
> network device and
> eth0 for NAT.
>
> > It is probably something with the settings.
> > Apparently everything looks ok but connection not
> > good. Thanks for all suggestions and help
> provided.
>
> Is the LAN client able to ping IP 10.154.19.136? Is
> it able to ping IP
> 64.233.183.99?
>
> > Antonio
>
> Alexander
>
>
> --
> Alexander Dalloz | Enger, Germany | GPG
> http://pgp.mit.edu 0xB366A773
> legal statement: http://www.uni-x.org/legal.html
> Fedora Core 2 GNU/Linux on Athlon with kernel
> 2.6.11-1.35_FC2smp
> Serendipity 15:34:40 up 8 days, 12:18, load average:
> 0.08, 0.07, 0.08
> > --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe:
http://www.redhat.com/mailman/listinfo/fedora-list
The configuration is not working in Windows98. I do
not know how to mess with the settings. I should try
tomorrow with a livecd like DSL/feather linux because
the machine has only 32MB of ram.
[root at rio ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U
0 0 0 eth1
10.154.19.0 0.0.0.0 255.255.255.0 U
0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U
0 0 0 eth0
0.0.0.0 10.154.19.1 0.0.0.0 UG
0 0 0 eth0
[root at rio ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr
00:50:2C:A6:19:28
inet addr:10.154.19.136 Bcast:10.154.19.255
Mask:255.255.255.0
inet6 addr: fe80::250:2cff:fea6:1928/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:3709 errors:0 dropped:0
overruns:0 frame:0
TX packets:1160 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1076413 (1.0 MiB) TX bytes:179791
(175.5 KiB)
Interrupt:11 Base address:0xae00
eth1 Link encap:Ethernet HWaddr
00:60:97:C5:2A:C3
inet addr:192.168.100.1
Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::260:97ff:fec5:2ac3/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:171 errors:0 dropped:0 overruns:0
frame:0
TX packets:98 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:1000
RX bytes:17772 (17.3 KiB) TX bytes:11736
(11.4 KiB)
Interrupt:11 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0
frame:0
TX packets:95 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:0
RX bytes:6570 (6.4 KiB) TX bytes:6570 (6.4
KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
frame:0
TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root at rio ~]#
Thanks for all helpful advice and suggestions. I will
report back as I continue with this problem.
Kind Regards,
Antonio
P.S. I have installed webmin but I get an error
message
The connection to rio.10000 has terminated
unexpectedly . Some data may be tranferred.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the fedora-list
mailing list