---------- Továbbított levél ---------- Dátum: Sat, 14 Aug 2004 13:35:24 +0200 (CEST) Feladó: Na Zo <[EMAIL PROTECTED]> Címzett: [EMAIL PROTECTED] Tárgy: 2 questions: 1., ipfwadm, 2., local net with rtl8139
hi! 1., I' d like to use ipmasquerading to share the internet, but i have problem with it. I have installed the following modules into the kernel IP: Netfilter Configuration ---> <M> Connection tracking (required for masq/NAT) <M> FTP protocol support <M> IRC protocol support <M> IP tables support (required for filtering/masq/NAT) <M> Packet filtering <M> Full NAT <M> MASQUERADE target support <M> Packet mangling <M> ipchains (2.2-style) support <M> ipfwadm (2.0-style) support (certainly i don' t use the last two). All other modules can be loaded with success. I use 2.4.26 kernel, and if i load all modules, i got this: " router:~# lsmod Module Size Used by Not tainted iptable_mangle 2208 0 (unused) ipt_MASQUERADE 1952 0 (unused) ip_nat_irc 2752 0 (unused) ip_nat_ftp 3616 0 (unused) ip_conntrack_irc 3296 1 [ip_nat_irc] ip_conntrack_ftp 4128 1 [ip_nat_ftp] iptable_nat 22516 2 (autoclean) [ipt_MASQUERADE ip_nat_irc ip_nat_ftp] ip_conntrack 30452 2 (autoclean) [ipt_MASQUERADE ip_nat_irc ip_nat_ftp ip_conntrack_irc ip_conntrack_ftp iptable_nat] iptable_filter 1728 0 (autoclean) (unused) ip_tables 14560 6 [iptable_mangle ipt_MASQUERADE iptable_nat iptable_filter] 8139too 13376 1 ne2k-pci 4416 1 router:~# " eth0 is the interface to the internet, and eth1 is for the local net. >>>The problem come, if i try to use the following command:<<< " router:~# iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT " then i got this error message (error code: 1): " iptables: No chain/target/match by that name " I tried to loose the problem with google, but nothing could help. Certainly i made these: " echo "1" > /proc/sys/net/ipv4/ip_forward echo "1" > /proc/sys/net/ipv4/ip_dynaddr " Distro: debian ----------------------------------------------------------------------- 2., the second problem is, that i have in this router machine two ethernetcard (rtl8029, and 8139). the 8029 works fine, but i use 8139too driver for the other one. If i try to copy(ftp) _to_ the router, everything works fine with about 2MByte/s (the router is a PI 100MHZ, so it' s good for it), but in the other direction (from the router to another machine) i can copy only with 2-300KByte/s. In the kernel (2.4.26) i compiled this as modules: " <M> RealTek RTL-8139 PCI Fast Ethernet Adapter support ", and compiled these into the kernel: " Use PIO instead of MMIO Support for uncommon RTL-8139 rev. K (automatic channel equ... " I tryed all combination of the last two. The cabel length is about 20m. Both of the Distros are Debian; Thans very much for your help. [EMAIL PROTECTED]