* Problem with ssh
@ 2004-08-25 12:26 Steve Comfort
2004-08-25 12:32 ` Markus Linden
0 siblings, 1 reply; 4+ messages in thread
From: Steve Comfort @ 2004-08-25 12:26 UTC (permalink / raw)
To: netfilter
Hi all,
First off, a feeble attempt at diagramming my setup :
192.168.200.x eth -> eth Embedded Linux Wireless ppp -> ppp Embedded
Linux Access Point eth0 -> 192.168.1.x
The two Embedded Linux Wireless boxes are actually what I am working on.
The second one in the list above is configured as a bridge, and doesn't
currently have any firewalling (because I haven't figured out whether I
need ebtables or iptables, but that's another story).
The client side wireless box (on the left) has the following rule in it :
$IPTABLES -A bad_tcp_packets -i $INET_IFACE -s 192.168.200.0/16 -j DROP
Here INET_IFACE = ppp0.
If I have this rule in place, I am unable to ssh from a box on the
192.168.200.x network to one on the 192.168.1.x network.
As I read the above, packets entering the ppp interface on the wireless
client, with a source address on the .200 sub-net should be dropped.
Which seems perfectly reasonable. But what I don't understand is why the
returning ssh packets (which should be sourced on the .1 subnet) are
being dropped?
Best regards
Steve Comfort
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Problem with ssh
@ 2004-08-25 12:31 Jason Opperisano
0 siblings, 0 replies; 4+ messages in thread
From: Jason Opperisano @ 2004-08-25 12:31 UTC (permalink / raw)
To: netfilter
> Hi all,
>
> First off, a feeble attempt at diagramming my setup :
>
> 192.168.200.x eth -> eth Embedded Linux Wireless ppp -> ppp Embedded
> Linux Access Point eth0 -> 192.168.1.x
>
> The two Embedded Linux Wireless boxes are actually what I am working on.
> The second one in the list above is configured as a bridge, and doesn't
> currently have any firewalling (because I haven't figured out whether I
> need ebtables or iptables, but that's another story).
>
> The client side wireless box (on the left) has the following rule in it :
>
> $IPTABLES -A bad_tcp_packets -i $INET_IFACE -s 192.168.200.0/16 -j DROP
192.168.200.0/16 == 192.168.0.0 - 192.168.255.255
try using 192.168.200.0/24; and if that wasn't a typo, reading up on IP subnetting.
-j
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with ssh
2004-08-25 12:26 Problem with ssh Steve Comfort
@ 2004-08-25 12:32 ` Markus Linden
0 siblings, 0 replies; 4+ messages in thread
From: Markus Linden @ 2004-08-25 12:32 UTC (permalink / raw)
To: Steve Comfort; +Cc: netfilter
On Wed, 2004-08-25 at 13:26, Steve Comfort wrote:
> The client side wireless box (on the left) has the following rule in it :
>
> $IPTABLES -A bad_tcp_packets -i $INET_IFACE -s 192.168.200.0/16 -j DROP
Look at your netmask, should be /24 not a /16?
Markus
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Problem with ssh
@ 2004-08-25 16:55 Hudson Delbert J Contr 61 CS/SCBN
0 siblings, 0 replies; 4+ messages in thread
From: Hudson Delbert J Contr 61 CS/SCBN @ 2004-08-25 16:55 UTC (permalink / raw)
To: netfilter
duh????
11000000.10100100.00000000.00000000 .eq. 192.168.0.0
11000000.10100100.11001000.00000000 .eq. 192.168.200.0
but they are .EQ. if one looks thru the lens of the netmask
as only the 16 leftmost bits are considered as net and the
16 rightmost are considered as host addys.
11000000.10100100.11001000.00000000/16 .EQ
11000000.10100100.00000000.00000000
the /16 mask .EQ. 0.0.255.255
he could really mean 192.168.0.0/16 instead of 192.168.200.0/16
it is common industry practice to subnet 192.168.0.0 on a 16 bit mask...
looks like he might have gotten confused but...anyway, hope he fixes the
typo..
if its not a typo, then heeding the crack about reading the IP Subnetting
text would be wise...
v/r,
~piranha
-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org]On Behalf Of Jason
Opperisano
Sent: Wednesday, August 25, 2004 5:32 AM
To: netfilter@lists.netfilter.org
Subject: RE: Problem with ssh
> Hi all,
>
> First off, a feeble attempt at diagramming my setup :
>
> 192.168.200.x eth -> eth Embedded Linux Wireless ppp -> ppp Embedded
> Linux Access Point eth0 -> 192.168.1.x
>
> The two Embedded Linux Wireless boxes are actually what I am working on.
> The second one in the list above is configured as a bridge, and doesn't
> currently have any firewalling (because I haven't figured out whether I
> need ebtables or iptables, but that's another story).
>
> The client side wireless box (on the left) has the following rule in it :
>
> $IPTABLES -A bad_tcp_packets -i $INET_IFACE -s 192.168.200.0/16 -j DROP
192.168.200.0/16 == 192.168.0.0 - 192.168.255.255
try using 192.168.200.0/24; and if that wasn't a typo, reading up on IP
subnetting.
-j
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-25 16:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-25 12:26 Problem with ssh Steve Comfort
2004-08-25 12:32 ` Markus Linden
-- strict thread matches above, loose matches on Subject: below --
2004-08-25 12:31 Jason Opperisano
2004-08-25 16:55 Hudson Delbert J Contr 61 CS/SCBN
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.