masquerade
Hi,
Im absoulte newbie to netfilter, but last year I set up my debian firewall. I tought its 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
Quoted 7 lines · Janos Makadi
Hi,
I
m absoulte newbie to netfilter, but last year I set up my debian firewall. I tought its 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
Signature · 1 line
Jason Opperisano <[email protected]>
Quoted 3 lines · Jason Opperisano
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:
Thank you for your answer. What you suggest is working. I have to check my browser settings more carefully.
THX
Janos Makadi