Re: Share internet connection/make a small server

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

 




--- jludwig <wralphie@xxxxxxxxxxx> wrote:

> On Tuesday 30 August 2005 07:06 pm, Antonio Olivares
> wrote:
> > --- Alexander Dalloz <ad+lists@xxxxxxxxx> wrote:
> 
> > > > >
> > > > > iptables -A POSTROUTING -o eth0 -j
> MASQUERADE
> snip
> >
> >
> >
> ____________________________________________________
> > Start your day with Yahoo! - make it your home
> page
> > http://www.yahoo.com/r/hs
> Did you add rules for forwarding
> S.A
> iptables -A FORWARD -i eth0 -m state --state
> ESTABLISHED,RELATED -j ACCEPT
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-list
> 

I have tried to connect from slax live cd and it does
not connect.  I have done the following:

[root@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@rio ~]# service dhcpd status
dhcpd (pid 3899) is running...
[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 ~]# iptables -t nat -A POSTROUTING -o eth1
-j MASQUERADE
[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 ~]# service dhcpd status
dhcpd (pid 3899) is running...
[root@rio ~]# touch /var/state/dhcpd/dhcpd.leases
[root@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 eth1
0.0.0.0         10.154.19.1     0.0.0.0         UG   
0      0        0 eth0
[root@rio ~]#  

What should I do so that the problem gets fixed?

TIA

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