Linux Netfilter discussions
 help / color / mirror / Atom feed
* masquerade
@ 2004-10-13 16:41 Janos Makadi
  2004-10-14 12:36 ` masquerade Jason Opperisano
  0 siblings, 1 reply; 10+ messages in thread
From: Janos Makadi @ 2004-10-13 16:41 UTC (permalink / raw)
  To: netfilter

Hi,

I`m absoulte newbie to netfilter, but last year I set up my debian 
firewall. I tought it`s configuration is correct, but yesterday I found 
http://audiymypc.com which shows my real ip address which I wanted to 
hide. It shows the correct address too, but it seems my real local 
address is visible on the internet somehow.

This is my configuration:

# Generated by iptables-save v1.2.8 on Thu Nov 27 22:19:07 2003
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
[0:0] -A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Thu Nov 27 22:19:07 2003
# Generated by iptables-save v1.2.8 on Thu Nov 27 22:19:07 2003
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:block - [0:0]
[0:0] -A INPUT -j block
[0:0] -A FORWARD -j block
[0:0] -A block -i eth1 -p TCP -m state --state NEW -j ULOG 
--ulog-nlgroup 1 --ulog-prefix "Dropped TCP packet:"
[0:0] -A block -i eth1 -p ICMP -m state --state NEW,RELATED -j ULOG 
--ulog-nlgroup 1 --ulog-prefix "Dropped ICMP packet:"
[0:0] -A block -m state --state RELATED,ESTABLISHED -j ACCEPT
[0:0] -A block -i ! eth1 -m state --state NEW -j ACCEPT
[0:0] -A block -j DROP
COMMIT
# Completed on Thu Nov 27 22:19:07 2003


What did I wrong?

THX

kernel is vanilla 2.4.25-rc2
iptables is 1.2.9


^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: masquerade
@ 2004-10-14 20:08 Hudson Delbert J Contr 61 CS/SCBN
  0 siblings, 0 replies; 10+ messages in thread
From: Hudson Delbert J Contr 61 CS/SCBN @ 2004-10-14 20:08 UTC (permalink / raw)
  To: 'Jason Opperisano', netfilter


I'd suggest that Jason is 'spot-on' as far as the java is concerned.
i learned several years ago that some developers sometimes (hopefully not
anymore)
build modules in the dark as regards how networks work.

i know of one particulary nasty application (in terms of proxy / fwalls), 
5280/3780 emulator that called an applet that would stuff the workstation ip
address
in the DATA payload of packets before it would even leave the application.

this obviously would have been hidden from the proxy as the packet would
always
get passed to the distant end where java would un-encaps that packet and use
the IP Address
loaded into the data portion of the packet and try to 'catch a ride' back to
the client
using that address in the header. the proxy would block the packet as it
would not get a match
in the connection table thus would get dropped by fwtk. the fallout of
course being retans and timeouts
and customers blaming everyong but the guys who wrote the application.

~piranha

 

-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org]On Behalf Of Jason
Opperisano
Sent: Thursday, October 14, 2004 5:36 AM
To: netfilter@lists.netfilter.org
Subject: Re: masquerade


On Wed, 2004-10-13 at 12:41, Janos Makadi wrote:
> Hi,
> 
> I`m absoulte newbie to netfilter, but last year I set up my debian 
> firewall. I tought it`s configuration is correct, but yesterday I found 
> http://audiymypc.com which shows my real ip address which I wanted to 
> hide. It shows the correct address too, but it seems my real local 
> address is visible on the internet somehow.

disable java in your web browser and re-run the test--they won't be able
to find your real IP address anymore.  they're probably either using
this code directly, or a similar technique:

  http://reglos.de/myaddress/MyAddress.html

none of this has anything to do with the configuration of your firewall.

-j

-- 
Jason Opperisano <opie@817west.com>



^ permalink raw reply	[flat|nested] 10+ messages in thread
* MASQUERADE
@ 2004-07-09  3:49 Payal Rathod
  2004-07-09 10:35 ` MASQUERADE Erik Wikström
  0 siblings, 1 reply; 10+ messages in thread
From: Payal Rathod @ 2004-07-09  3:49 UTC (permalink / raw)
  To: netfilter

Hi,
Is there any different way to do MASQUERADE in kernel 2.6.3-7  with
iptables v1.2.9?
I get,

# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables: Invalid argument

A quick look at the man page did not suggest anything.
Any ideas to what is missing?

With warm regards,
-Payal


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

end of thread, other threads:[~2004-10-14 20:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-13 16:41 masquerade Janos Makadi
2004-10-14 12:36 ` masquerade Jason Opperisano
2004-10-14 17:19   ` masquerade Makadi Janos
  -- strict thread matches above, loose matches on Subject: below --
2004-10-14 20:08 masquerade Hudson Delbert J Contr 61 CS/SCBN
2004-07-09  3:49 MASQUERADE Payal Rathod
2004-07-09 10:35 ` MASQUERADE Erik Wikström
2004-07-09 10:51   ` MASQUERADE Antony Stone
2004-07-09 11:25     ` MASQUERADE Wilfried
2004-07-12 18:45     ` MASQUERADE Payal Rathod
2004-07-09 15:48   ` MASQUERADE Payal Rathod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox