Re: route packages

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

 



On Wed, 2009-12-16 at 12:12 -0200, Adel ESSAFI wrote: 
> Hi list
> In my school, I need to have a PC that act like router since I have
> not public addresses.
> 
> I have followed many link
> (http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/, the doc of fedora ....).
> All tell the same thing.
> 
> Unfortunally, When I follow them, I have no results! When I ping  an
> adsress from a windows PC (192.168.10.7) I have no response.
> 
> here is my configuration.
> 
> Can you help plz
> 
> Regards
> ps: I am on fedora 10 and iptables is disabled.
> 
> 
> 
> 
> 
> 
> [root@localhost ~]# ifconfig 
> eth0      Link encap:Ethernet  HWaddr 00:18:8B:DB:7E:9E  
>           inet addr:41.229.61.107  Bcast:41.229.61.255
> Mask:255.255.255.0
>           inet6 addr: fe80::218:8bff:fedb:7e9e/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:3183 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:3256 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:872353 (851.9 KiB)  TX bytes:476139 (464.9 KiB)
>           Interrupt:17 
It looks too me like you are conncted at eth0 not eth0:1
> 
> eth0:1    Link encap:Ethernet  HWaddr 00:18:8B:DB:7E:9E  
>           inet addr:192.168.10.10  Bcast:192.168.10.255
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Interrupt:17 
> 
> 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:16623 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:16623 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:495159 (483.5 KiB)  TX bytes:495159 (483.5 KiB)
> 
> [root@localhost ~]# route 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref
> Use Iface
> 41.229.61.0     *               255.255.255.0   U     0      0
> 0 eth0
> 192.168.10.0    *               255.255.255.0   U     0      0
> 0 eth0
> link-local      *               255.255.0.0     U     1002   0
> 0 eth0
> default         41.229.61.65    0.0.0.0         UG    0      0
> 0 eth0
> [root@localhost ~]# iptables
> iptables v1.4.3.2: no command specified
> Try `iptables -h' or 'iptables --help' for more information.
> [root@localhost ~]# cat /etc/sysctl.conf 
> # Kernel sysctl configuration file for Red Hat Linux
> #
> # For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
> # sysctl.conf(5) for more details.
> 
> # Controls IP packet forwarding
> net.ipv4.ip_forward = 1
> 
> # Controls source route verification
> net.ipv4.conf.default.rp_filter = 1
> 
> # Do not accept source routing
> net.ipv4.conf.default.accept_source_route = 0
> 
> # Controls the System Request debugging functionality of the kernel
> kernel.sysrq = 0
> 
> # Controls whether core dumps will append the PID to the core
> filename.
> # Useful for debugging multi-threaded applications.
> kernel.core_uses_pid = 1
> 
> # Added by Cinelerra RPM from RPM Fusion
> kernel.shmmax = 0x7fffffff
> 
> 
> 
> 
> 
> -- 
> http://ilovefedora.blogspot.com/
> 
> -- 
> 
> PhD candidate in Computer Science
> Address       
> BP 108, Bureau de poste Tunis republique 
> 1001 Tunis
> Tunisia
> tel: +216 97 246 706
> fax: +216 71 391 166
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
--
=======================================================================
Nice guys get sick.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux