All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Unable to Access Inet via HostAP
@ 2003-08-15 17:06 Landon Chelf
  2003-08-16  0:50 ` Steve Wright
  0 siblings, 1 reply; 2+ messages in thread
From: Landon Chelf @ 2003-08-15 17:06 UTC (permalink / raw)
  To: lartc

Hello,

Thanx in advance to anyone who can help me get this going.  I have
tinkered around and around with this and I have it functioning as a
visible access point that I can connect to.  My problem comes in when
trying to access the internet.  I'm not an iptables guru or anything but
I got the following as my iptables startup to supposedly masq the
connection correctly:

/etc/sysconfig/iptables file:

*filter

:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]

# Accept all traffic from the loopback interface.
-A INPUT -i lo -j ACCEPT

# Accept legitimate responses to traffic we generate.
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# Accept SSH connections from the wired network only.
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth1 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 22 -j DROP

# Allow inbound DNS requests from the wireless network.
-A INPUT -s 0/0 -p udp --dport 53 -j ACCEPT
-A INPUT -s 0/0 -p tcp --dport 53 -j ACCEPT

# Allow inbound DHCP from the Local wireless network
-A INPUT -i wlan0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

# Allow all related traffic to/from non-privileged ports.
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 1024:65535 -m state
--state RELATED,ESTABLISHED -j ACCEPT

# Allow all traffic from the LAN to be forwarded to the WLAN. -A FORWARD
-i eth0 -o wlan0 -j ACCEPT

# Forward all legitimate responses to forwarded traffic.
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT

-----------------------------

I've got my client computer setup connection to the AP and the wlan0 as
the gateway ip.  Please help.  You can IM me via MSN account
landonc@starrobbins.com.

Landon

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Unable to Access Inet via HostAP
  2003-08-15 17:06 [LARTC] Unable to Access Inet via HostAP Landon Chelf
@ 2003-08-16  0:50 ` Steve Wright
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Wright @ 2003-08-16  0:50 UTC (permalink / raw)
  To: lartc

On Sat, 2003-08-16 at 05:06, Landon Chelf wrote:
> I got the following as my iptables startup to supposedly masq the
> connection correctly:

I can't help with the iptables, but an easier and more secure way is to
run squid proxy on your server.

/steve


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-16  0:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 17:06 [LARTC] Unable to Access Inet via HostAP Landon Chelf
2003-08-16  0:50 ` Steve Wright

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.