Re: [gentoo-user] Wireless router
http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/ http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html#RC.FIREWALL-2.4.X Best Regards, João Seabra -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Wireless router
emerge -C iptables emerge iptables Don't know why this worked but it did! On Wednesday 19 March 2003 09:08 pm, Elvis Dieguez wrote: > I 've set up a wireless network at home but I am having the following > problem: I can ping all the computers on the internal network but i cannot > connect to computers outside the network. It seems that the computer that > is supposed to act at the router is not doing its job. I would appreciate > step-by-step instructions from anyone who has succeeded. I am using Orinoco > PCMCIA cards operating in Ad-Hoc mode. I've compiled in iptables as a > module (everything was compiled in under the iptables heading as a module) > on the router. > > Strangely, when I try: > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > I get an error: > iptables: Invalid argument > due to the '-j MASQUERADE' term. Below are some outputs that might be > useful. > > > > BASE STATION (some IPs have been removed for posting) > > networks.opts > *,*,*,00:02:2D:8B:29:BD) > # WiFi card > IPADDR="192.168.1.11" > NETMASK="255.255.255.0" > ;; > > *,*,*,00:09:5B:07:82:34) > # 10base-T Ethernet card > IPADDR="xx.xx.xxx.xxx" > NETMASK="255.255.255.0" > GATEWAY="xx.xx.xxx.x" > ;; > > esac > > wireless.opts > case "$ADDRESS" in > *,*,*,*) > INFO="My 802.11b Network Settings" > ESSID=" " > MODE="Ad-Hoc" > RATE="auto" > KEY="s:" > ;; > esac > > > legolas root # lsmod > Module Size Used byNot tainted > orinoco_cs 5012 1 > orinoco42444 0 [orinoco_cs] > hermes 6532 0 [orinoco_cs orinoco] > ds 7464 1 [orinoco_cs] > i82365 41664 1 > pcmcia_core47808 0 [orinoco_cs ds i82365] > ipt_MASQUERADE 1560 0 (autoclean) > iptable_nat19932 1 (autoclean) [ipt_MASQUERADE] > ip_conntrack 26056 1 (autoclean) [ipt_MASQUERADE iptable_nat] > iptable_filter 1740 0 (autoclean) (unused) > ip_tables 13688 5 [ipt_MASQUERADE iptable_nat > iptable_filter] ide-cd 33292 0 (autoclean) > sr_mod 16312 0 (autoclean) (unused) > scsi_mod 96692 1 (autoclean) [sr_mod] > cdrom 33280 0 (autoclean) [ide-cd sr_mod] > rtc 8220 0 (autoclean) > usbcore74720 1 > natsemi17888 1 > > > legolas root # cat /root/scripts/set_router.sh > iptables -F > iptables -t nat -F > iptables -P INPUT ACCEPT > iptables -P OUTPUT ACCEPT > iptables -P FORWARD ACCEPT > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > -- > [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Wireless router
Thanks for your reply. Strangely enough I've insmod in everything you have on your list and I still get an error when I try -j MASQUERADE. I guess I will try Google and see what i can find. Elvis On Wednesday 19 March 2003 09:33 pm, Joshua J. Berry wrote: > Yeah...the MASQUERADE is the essential part. Here's an lsmod list from my > system (I have a setup similar to yours, except I have a WAP that's acting > as a dumb switch). > > What you probably want to look at are things like ipt_MASQUERADE and > ipt_state. > > Good luck. > > Module Size Used byTainted: P > ipsec 146944 2 > isofs 26420 0 (autoclean) > zlib_inflate 18852 0 (autoclean) [isofs] > nfsd 48872 0 (autoclean) > lockd 38768 0 (autoclean) [nfsd] > sunrpc 66620 0 (autoclean) [nfsd lockd] > ipt_MASQUERADE 1368 1 (autoclean) > ipt_REJECT 3000 1 (autoclean) > ipt_state568 1 (autoclean) > ipt_LOG 3384 1 (autoclean) > ppp_async 7744 1 > rtc 6908 0 (autoclean) > ipt_multiport696 0 (unused) > ipt_limit888 0 (unused) > ipt_mac 664 0 (unused) > ip_conntrack_irc3024 1 (autoclean) > ip_nat_irc 2480 0 (unused) > ip_conntrack_ftp4144 1 (autoclean) > ip_nat_ftp 3152 0 (unused) > iptable_filter 1740 1 > iptable_nat15864 3 [ipt_MASQUERADE ip_nat_irc ip_nat_ftp] > ip_conntrack 19360 4 [ipt_MASQUERADE ipt_state > ip_conntrack_irc ip_nat_irc ip_conntrack_ftp ip_nat_ftp iptable_nat] > ip_tables 12152 11 [ipt_MASQUERADE ipt_REJECT ipt_state > ipt_LOG ipt_multiport ipt_limit ipt_mac iptable_filter iptable_nat] > pppoe 8172 0 (unused) > pppox 1144 1 [pppoe] > ppp_generic17436 3 [ppp_async pppoe pppox] > slhc5264 0 [ppp_generic] > lp 7040 0 > parport_pc 16004 1 > parport26592 1 [lp parport_pc] > sr_mod 14424 0 > sg 28684 0 > ide-scsi8848 0 > scsi_mod 87284 3 [sr_mod sg ide-scsi] > keybdev 2144 0 (unused) > mousedev4340 0 (unused) > hid14120 0 (unused) > usbcore40512 0 [hid] > input 3616 0 [keybdev mousedev hid] > emu10k162472 1 > ac97_codec 11144 0 [emu10k1] > sound 59284 0 [emu10k1] > soundcore 3908 7 [emu10k1 sound] > 8139too15144 1 > mii 2528 0 [8139too] > 3c59x 27888 1 > NVdriver 1067040 10 > agpgart24808 0 > raid1 13420 2 > raid0 3208 3 > md 48032 9 [raid1 raid0] > > On Wednesday 19 March 2003 18:08, Elvis Dieguez wrote: > > I 've set up a wireless network at home but I am having the following > > problem: I can ping all the computers on the internal network but i > > cannot connect to computers outside the network. It seems that the > > computer that is supposed to act at the router is not doing its job. I > > would appreciate step-by-step instructions from anyone who has succeeded. > > I am using Orinoco PCMCIA cards operating in Ad-Hoc mode. I've compiled > > in iptables as a module (everything was compiled in under the iptables > > heading as a module) on the router. > > > > Strangely, when I try: > > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > I get an error: > > iptables: Invalid argument > > due to the '-j MASQUERADE' term. Below are some outputs that might be > > useful. > > > > > > > > BASE STATION (some IPs have been removed for posting) > > > > networks.opts > > *,*,*,00:02:2D:8B:29:BD) > > # WiFi card > > IPADDR="192.168.1.11" > > NETMASK="255.255.255.0" > > ;; > > > > *,*,*,00:09:5B:07:82:34) > > # 10base-T Ethernet card > > IPADDR="xx.xx.xxx.xxx" > > NETMASK="255.255.255.0" > > GATEWAY="xx.xx.xxx.x" > > ;; > > > > esac > > > > wireless.opts > > case "$ADDRESS" in > > *,*,*,*) > > INFO="My 802.11b Network Settings" > > ESSID=" " > > MODE="Ad-Hoc" > > RATE="auto" > > KEY="s:" > > ;; > > esac > > > > > > legolas root # lsmod > > Module Size Used byNot tainted > > orinoco_cs 5012 1 > > orinoco42444 0 [orinoco_cs] > > hermes 6532 0 [orinoco_cs orinoco] > > ds 7464 1 [orinoco_cs] > > i82365 41664 1 > > pcmcia_core47808 0 [orinoco_cs ds i82365] > > ipt_MASQUERADE 1560 0 (autoclean) > > iptable_nat
Re: [gentoo-user] Wireless router
Yeah...the MASQUERADE is the essential part. Here's an lsmod list from my system (I have a setup similar to yours, except I have a WAP that's acting as a dumb switch). What you probably want to look at are things like ipt_MASQUERADE and ipt_state. Good luck. Module Size Used byTainted: P ipsec 146944 2 isofs 26420 0 (autoclean) zlib_inflate 18852 0 (autoclean) [isofs] nfsd 48872 0 (autoclean) lockd 38768 0 (autoclean) [nfsd] sunrpc 66620 0 (autoclean) [nfsd lockd] ipt_MASQUERADE 1368 1 (autoclean) ipt_REJECT 3000 1 (autoclean) ipt_state568 1 (autoclean) ipt_LOG 3384 1 (autoclean) ppp_async 7744 1 rtc 6908 0 (autoclean) ipt_multiport696 0 (unused) ipt_limit888 0 (unused) ipt_mac 664 0 (unused) ip_conntrack_irc3024 1 (autoclean) ip_nat_irc 2480 0 (unused) ip_conntrack_ftp4144 1 (autoclean) ip_nat_ftp 3152 0 (unused) iptable_filter 1740 1 iptable_nat15864 3 [ipt_MASQUERADE ip_nat_irc ip_nat_ftp] ip_conntrack 19360 4 [ipt_MASQUERADE ipt_state ip_conntrack_irc ip_nat_irc ip_conntrack_ftp ip_nat_ftp iptable_nat] ip_tables 12152 11 [ipt_MASQUERADE ipt_REJECT ipt_state ipt_LOG ipt_multiport ipt_limit ipt_mac iptable_filter iptable_nat] pppoe 8172 0 (unused) pppox 1144 1 [pppoe] ppp_generic17436 3 [ppp_async pppoe pppox] slhc5264 0 [ppp_generic] lp 7040 0 parport_pc 16004 1 parport26592 1 [lp parport_pc] sr_mod 14424 0 sg 28684 0 ide-scsi8848 0 scsi_mod 87284 3 [sr_mod sg ide-scsi] keybdev 2144 0 (unused) mousedev4340 0 (unused) hid14120 0 (unused) usbcore40512 0 [hid] input 3616 0 [keybdev mousedev hid] emu10k162472 1 ac97_codec 11144 0 [emu10k1] sound 59284 0 [emu10k1] soundcore 3908 7 [emu10k1 sound] 8139too15144 1 mii 2528 0 [8139too] 3c59x 27888 1 NVdriver 1067040 10 agpgart24808 0 raid1 13420 2 raid0 3208 3 md 48032 9 [raid1 raid0] On Wednesday 19 March 2003 18:08, Elvis Dieguez wrote: > I 've set up a wireless network at home but I am having the following > problem: I can ping all the computers on the internal network but i cannot > connect to computers outside the network. It seems that the computer that > is supposed to act at the router is not doing its job. I would appreciate > step-by-step instructions from anyone who has succeeded. I am using Orinoco > PCMCIA cards operating in Ad-Hoc mode. I've compiled in iptables as a > module (everything was compiled in under the iptables heading as a module) > on the router. > > Strangely, when I try: > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > I get an error: > iptables: Invalid argument > due to the '-j MASQUERADE' term. Below are some outputs that might be > useful. > > > > BASE STATION (some IPs have been removed for posting) > > networks.opts > *,*,*,00:02:2D:8B:29:BD) > # WiFi card > IPADDR="192.168.1.11" > NETMASK="255.255.255.0" > ;; > > *,*,*,00:09:5B:07:82:34) > # 10base-T Ethernet card > IPADDR="xx.xx.xxx.xxx" > NETMASK="255.255.255.0" > GATEWAY="xx.xx.xxx.x" > ;; > > esac > > wireless.opts > case "$ADDRESS" in > *,*,*,*) > INFO="My 802.11b Network Settings" > ESSID=" " > MODE="Ad-Hoc" > RATE="auto" > KEY="s:" > ;; > esac > > > legolas root # lsmod > Module Size Used byNot tainted > orinoco_cs 5012 1 > orinoco42444 0 [orinoco_cs] > hermes 6532 0 [orinoco_cs orinoco] > ds 7464 1 [orinoco_cs] > i82365 41664 1 > pcmcia_core47808 0 [orinoco_cs ds i82365] > ipt_MASQUERADE 1560 0 (autoclean) > iptable_nat19932 1 (autoclean) [ipt_MASQUERADE] > ip_conntrack 26056 1 (autoclean) [ipt_MASQUERADE iptable_nat] > iptable_filter 1740 0 (autoclean) (unused) > ip_tables 13688 5 [ipt_MASQUERADE iptable_nat > iptable_filter] ide-cd 33292 0 (autoclean) > sr_mod 16312 0 (autoclean) (unused) > scsi_mod 96692 1 (autoclean) [sr_mod] > cdrom 33280 0 (autoclean) [ide-cd
[gentoo-user] Wireless router
I 've set up a wireless network at home but I am having the following problem: I can ping all the computers on the internal network but i cannot connect to computers outside the network. It seems that the computer that is supposed to act at the router is not doing its job. I would appreciate step-by-step instructions from anyone who has succeeded. I am using Orinoco PCMCIA cards operating in Ad-Hoc mode. I've compiled in iptables as a module (everything was compiled in under the iptables heading as a module) on the router. Strangely, when I try: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE I get an error: iptables: Invalid argument due to the '-j MASQUERADE' term. Below are some outputs that might be useful. BASE STATION (some IPs have been removed for posting) networks.opts *,*,*,00:02:2D:8B:29:BD) # WiFi card IPADDR="192.168.1.11" NETMASK="255.255.255.0" ;; *,*,*,00:09:5B:07:82:34) # 10base-T Ethernet card IPADDR="xx.xx.xxx.xxx" NETMASK="255.255.255.0" GATEWAY="xx.xx.xxx.x" ;; esac wireless.opts case "$ADDRESS" in *,*,*,*) INFO="My 802.11b Network Settings" ESSID=" " MODE="Ad-Hoc" RATE="auto" KEY="s:" ;; esac legolas root # lsmod Module Size Used byNot tainted orinoco_cs 5012 1 orinoco42444 0 [orinoco_cs] hermes 6532 0 [orinoco_cs orinoco] ds 7464 1 [orinoco_cs] i82365 41664 1 pcmcia_core47808 0 [orinoco_cs ds i82365] ipt_MASQUERADE 1560 0 (autoclean) iptable_nat19932 1 (autoclean) [ipt_MASQUERADE] ip_conntrack 26056 1 (autoclean) [ipt_MASQUERADE iptable_nat] iptable_filter 1740 0 (autoclean) (unused) ip_tables 13688 5 [ipt_MASQUERADE iptable_nat iptable_filter] ide-cd 33292 0 (autoclean) sr_mod 16312 0 (autoclean) (unused) scsi_mod 96692 1 (autoclean) [sr_mod] cdrom 33280 0 (autoclean) [ide-cd sr_mod] rtc 8220 0 (autoclean) usbcore74720 1 natsemi17888 1 legolas root # cat /root/scripts/set_router.sh iptables -F iptables -t nat -F iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE -- [EMAIL PROTECTED] mailing list