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 by Tainted: 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_state 568 1 (autoclean)
ipt_LOG 3384 1 (autoclean)
ppp_async 7744 1
rtc 6908 0 (autoclean)
ipt_multiport 696 0 (unused)
ipt_limit 888 0 (unused)
ipt_mac 664 0 (unused)
ip_conntrack_irc 3024 1 (autoclean)
ip_nat_irc 2480 0 (unused)
ip_conntrack_ftp 4144 1 (autoclean)
ip_nat_ftp 3152 0 (unused)
iptable_filter 1740 1
iptable_nat 15864 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_generic 17436 3 [ppp_async pppoe pppox]
slhc 5264 0 [ppp_generic]
lp 7040 0
parport_pc 16004 1
parport 26592 1 [lp parport_pc]
sr_mod 14424 0
sg 28684 0
ide-scsi 8848 0
scsi_mod 87284 3 [sr_mod sg ide-scsi]
keybdev 2144 0 (unused)
mousedev 4340 0 (unused)
hid 14120 0 (unused)
usbcore 40512 0 [hid]
input 3616 0 [keybdev mousedev hid]
emu10k1 62472 1
ac97_codec 11144 0 [emu10k1]
sound 59284 0 [emu10k1]
soundcore 3908 7 [emu10k1 sound]
8139too 15144 1
mii 2528 0 [8139too]
3c59x 27888 1
NVdriver 1067040 10
agpgart 24808 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="XXXX XXXX"
> MODE="Ad-Hoc"
> RATE="auto"
> KEY="s:XXXX"
> ;;
> esac
>
>
> legolas root # lsmod
> Module Size Used by Not tainted
> orinoco_cs 5012 1
> orinoco 42444 0 [orinoco_cs]
> hermes 6532 0 [orinoco_cs orinoco]
> ds 7464 1 [orinoco_cs]
> i82365 41664 1
> pcmcia_core 47808 0 [orinoco_cs ds i82365]
> ipt_MASQUERADE 1560 0 (autoclean)
> iptable_nat 19932 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)
> usbcore 74720 1
> natsemi 17888 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
--
-----------------------------------------
Joshua J. Berry
"I haven't lost my mind -- it's backed up on tape somewhere."
-- /usr/games/fortune
PGP Key: http://deneb.condordes.net/node/16/view
NOTE: Please do not submit this email address to any mailing
lists or websites without prior permission. Thank you.
pgp00000.pgp
Description: signature
