Re: Share internet connection/make a small server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- Alexander Dalloz <ad+lists@xxxxxxxxx> wrote:

> Am Di, den 30.08.2005 schrieb Antonio Olivares um
> 1:45:
> 
> > apparently everything is working, but I cannot get
> > into internet from Windows 98 SE machine using
> dhcp to
> > access it.  
> > Should I change the subnetmask?
> 
> No.
> 
> > Should I rename domain-name-servers or just omit
> that
> > line?
> 
> domain-name-servers should be IP addresses. Which to
> use I can't judge,
> but maybe the 2 of your ISP may be best choice.
> 
> > Antonio
> 
> 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.

> 
> 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 10:14:51 up 8 days, 6:58, load average:
> 0.15, 0.26, 0.29 
> > -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe:
http://www.redhat.com/mailman/listinfo/fedora-list

[root@rio ~]# cat /proc/sys/net/ipv4/ip_forward
1
[root@rio ~]# iptables -A POSTROUTING -o eth0 -j
MASQUERADE
iptables: No chain/target/match by that name
[root@rio ~]#
[root@rio ~]# iptables -A POSTROUTING -o eth0 -j
MASQUERADE
iptables: No chain/target/match by that name
[root@rio ~]#
[root@rio ~]# iptables -A POSTROUTING -o eth1 -j
MASQUERADE
iptables: No chain/target/match by that name
[root@rio ~]# iptables -t nat -A POSTROUTING -o eth1
-j MASQUERADE
[root@rio ~]# service dhcpd status
dhcpd (pid 4917) is running...
[root@rio ~]# service iptables save\
>
[root@rio ~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables:     
    [  OK  ]
[root@rio ~]# service network restart
Shutting down interface eth0:                         
    [  OK  ]
Shutting down interface eth1:                         
    [  OK  ]
Shutting down loopback interface:                     
    [  OK  ]
Disabling IPv4 packet forwarding:                     
    [  OK  ]
Setting network parameters:                           
    [  OK  ]
Bringing up loopback interface:                       
    [  OK  ]
Bringing up interface eth0:                           
    [  OK  ]
Bringing up interface eth1:                           
    [  OK  ]
[root@rio ~]# touch /var/state/dhcpd/dhcpd.leases
[root@rio ~]# service dhcpd status
dhcpd (pid 4917) is running...
[root@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:6848 errors:0 dropped:0
overruns:0 frame:0
          TX packets:4031 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3177302 (3.0 MiB)  TX bytes:901591
(880.4 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:515 errors:0 dropped:0 overruns:0
frame:0
          TX packets:114 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:74818 (73.0 KiB)  TX bytes:19234
(18.7 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:52 errors:0 dropped:0 overruns:0
frame:0
          TX packets:52 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3794 (3.7 KiB)  TX bytes:3794 (3.7
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@rio ~]#  

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. 
However, the ipconfig /all, ipconfig /release_all and
ipconfig /renew_all give the following

iprelease gives 



Windows 98 IP Configuration



0 Ethernet adapter :



 IP Address. . . . . . . . . : 0.0.0.0

 Subnet Mask . . . . . . . . : 0.0.0.0

 Default Gateway . . . . . . : 



1 Ethernet adapter :



 IP Address. . . . . . . . . : 0.0.0.0

 Subnet Mask . . . . . . . . : 0.0.0.0

 Default Gateway . . . . . . : 





Windows 98 IP Configuration



 Host Name . . . . . . . . . : 4280 LAB 21.domain.lan

 DNS Servers . . . . . . . . : 

	Node Type . . . . . . . . . : Broadcast

	NetBIOS Scope ID. . . . . . : 

	IP Routing Enabled. . . . . : No

	WINS Proxy Enabled. . . . . : No

	NetBIOS Resolution Uses DNS : No



0 Ethernet adapter :



	Description . . . . . . . . : PPP Adapter.

	Physical Address. . . . . . : 44-45-53-54-00-00

	DHCP Enabled. . . . . . . . : Yes

	IP Address. . . . . . . . . : 0.0.0.0

	Subnet Mask . . . . . . . . : 0.0.0.0

	Default Gateway . . . . . . : 

	DHCP Server . . . . . . . . : 255.255.255.255

	Primary WINS Server . . . . : 

	Secondary WINS Server . . . : 

	Lease Obtained. . . . . . . : 

	Lease Expires . . . . . . . : 



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




Windows 98 IP Configuration



 Host Name . . . . . . . . . : 4280 LAB 21.domain.lan

 DNS Servers . . . . . . . . : 

 Node Type . . . . . . . . . : Broadcast

 NetBIOS Scope ID. . . . . . : 

 IP Routing Enabled. . . . . : No

 WINS Proxy Enabled. . . . . : No

 NetBIOS Resolution Uses DNS : No



0 Ethernet adapter :



 Description . . . . . . . . : PPP Adapter.

 Physical Address. . . . . . : 44-45-53-54-00-00

 DHCP Enabled. . . . . . . . : Yes

 IP Address. . . . . . . . . : 0.0.0.0

 Subnet Mask . . . . . . . . : 0.0.0.0

 Default Gateway . . . . . . : 

 DHCP Server . . . . . . . . : 255.255.255.255

 Primary WINS Server . . . . : 

 Secondary WINS Server . . . : 

 Lease Obtained. . . . . . . : 

 Lease Expires . . . . . . . : 



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


It is probably something with the settings. 
Apparently everything looks ok but connection not
good.  Thanks for all suggestions and help provided.  

Kind Regards,

Antonio




		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux