Where libipt_MASQ.so (???)
Hi! Im tired because I have tryed to run iptables on my system too times. The problem is that I dont have the dynamic library /lib/iptables/libipt_MASQ.so, but anybody have it!
I use Gentoo Linux on kernel 2.4.20. I have compiled all netfilter options as modules althoun I tried also installing it into the kernel system.
I only want, by now, this rules for the iptables tool:
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQ iptables -A FORWARD --match mac --mac-source 00:c0:49:bc:9f:08 -j MASQ iptables -A FORWARD --match mac --mac-source 00:02:8a:3a:77:b7 -j MASQ iptables -A FORWARD --match mac --mac-source 00:90:d1:08:19:8d -j MASQ
But the problem is when iptables execute '-j MASQ', telling me that libipt_MASQ.so doesn't exist. What should I do? I can't find an explication.
Sorry, but I am from Spain and my English could be poor for you. Try to understand me, :).
--
Jesús García Crespo (aka Sevein)
http://www.sevein.com
[email protected]
Try -j MASQUERADE
Quoted 35 lines · Jesús García Crespo (aka Sevein)
Hi! Im tired because I have tryed to run iptables on my system too times. The problem is that I dont have the dynamic library
/lib/iptables/libipt_MASQ.so, but anybody have it!I use Gentoo Linux on kernel 2.4.20. I have compiled all netfilter options as modules althoun I tried also installing it into the kernel system.
I only want, by now, this rules for the iptables tool:
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQ iptables -A FORWARD --match mac --mac-source 00:c0:49:bc:9f:08 -j MASQ iptables -A FORWARD --match mac --mac-source 00:02:8a:3a:77:b7 -j MASQ iptables -A FORWARD --match mac --mac-source 00:90:d1:08:19:8d -j MASQBut the problem is when iptables execute '-j MASQ', telling me that libipt_MASQ.so doesn't exist. What should I do? I can't find an explication.
Sorry, but I am from Spain and my English could be poor for you. Try to understand me, :).
--
Jesús García Crespo (aka Sevein)
http://www.sevein.com
[email protected]
Quoted 8 lines
--
----
Serwery wirtualne, konta e-mail. Oferta nie do odrzucenia. AlphaNet, http://www.cennik.alpha.pl
----
--
----
Serwery wirtualne, konta e-mail. Oferta nie do odrzucenia. AlphaNet, http://www.cennik.alpha.pl
----
Hola Ralf,
Monday, August 4, 2003 7:18:03 PM, you wrote:
RS> It is called MASQUERADE.
RS> Search and Replace any occurrence of MASQ by MASQUERADE and you are RS> done.
But the problem is that it can't find libipt_MASQ.so. What I have to rename or replace? I can't understand you. And... '-j MASQ'? or '-j MASQUERADE'?
RS> Cheers,
RS> Ralf
--
Jesús García Crespo (aka Sevein)
http://www.sevein.com
[email protected]
Quoted 1 line
iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQ
You need:iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQUERADE
Cheers,
Ralf
Signature · 6 lines
Ralf Spenneberg RHCE, RHCX Book: Intrusion Detection für Linux Server http://www.spenneberg.com IPsec-Howto http://www.ipsec-howto.org Honeynet Project Mirror: http://honeynet.spenneberg.org
Quoted 1 line · Jesús García Crespo (aka Sevein)
But the problem is that it can't find libipt_MASQ.so.
Yes, because you called MASQ target, that does not exist. That's why iptables is looking for an extension it can't find.
Quoted 2 lines
What I have to rename or replace? I can't understand you. And... '-j MASQ'? or '-j MASQUERADE'?
Use "-j MASQUERADE" just as written in the fine Netfilter documentation (i.e. NAT HOWTO).
Signature · 2 lines
http://www.netexit.com/~sid/ PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
Am Mon, 2003-08-04 um 20.05 schrieb Ralf Spenneberg:
Quoted 3 lines
Quoted 1 line
iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQ
You need:iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQUERADE
This is of course wrong. I take the opportunity to correct myself. I guess I need more coffee.
Masquerading is done in the nat table in the POSTROUTING or OUTPUT chain, therefore the line reads:
iptables -t nat -A POSTROUTING --match mac --mac-source \
00:c0:49:c9:d3:f1 -j MASQUERADE
Quoted 4 lines
Cheers,
Ralf
Signature · 6 lines
Ralf Spenneberg RHCE, RHCX Book: Intrusion Detection für Linux Server http://www.spenneberg.com IPsec-Howto http://www.ipsec-howto.org Honeynet Project Mirror: http://honeynet.spenneberg.org
Quoted 2 lines · Ralf Spenneberg
This is of course wrong. I take the opportunity to correct myself. I guess I need more coffee.
I offer you another cup [_]D ;))) Or maybe something stronger :P~
Quoted 2 lines
Masquerading is done in the nat table in the POSTROUTING or OUTPUT chain,
MASQUERADING and SNAT only occurs in POSTROUTING chain because they have to be done _after_ last routing point. In OUTPUT chain, you can DNAT, not SNAT or MASQUERADING :
cbr@elendil:~$ sudo iptables -t nat -A OUTPUT -j MASQUERADE iptables: Invalid argument
Quoted 3 lines
therefore the line reads:
iptables -t nat -A POSTROUTING --match mac --mac-source \
00:c0:49:c9:d3:f1 -j MASQUERADE
Source MAC is no more available in POSTROUTING :
cbr@elendil:~$ sudo iptables -t nat -A POSTROUTING -m mac --mac-source 00:c0:49:c9:d3:f1 -j MASQUERADE iptables: Invalid argument
Signature · 2 lines
http://www.netexit.com/~sid/ PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
Am Mon, 2003-08-04 um 20.21 schrieb Cedric Blancher:
Quoted 5 lines · Ralf Spenneberg
Quoted 2 lines
This is of course wrong. I take the opportunity to correct myself. I guess I need more coffee.
I offer you another cup [_]D ;))) Or maybe something stronger :P~
I definitely need something stronger. Of course you are right in pointing out my errors. I guess it is time to go to bed.
Cheers,
Ralf
Signature · 6 lines
Ralf Spenneberg RHCE, RHCX Book: Intrusion Detection für Linux Server http://www.spenneberg.com IPsec-Howto http://www.ipsec-howto.org Honeynet Project Mirror: http://honeynet.spenneberg.org