Skip to contentSkip to conversation

what is the '-m' flag?

DISCUSSION Leonardo Carneiro 3 participants 4 messages Jun 2, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

what the '-m' flag does in iptables? i'd search google and read the manual, but did not found anything.

a old script running in a firewall of my network have some rules like these:
iptables -A PREROUTING -p udp -m udp -d $inet_ip -i eth0 --dport 8282 -j DNAT --to-destination 192.168.1.102

tks in

Signature · 8 lines
*Leonardo de Souza Carneiro*
*Veltrac - Tecnologia em Logística.*
[email protected] <mailto:[email protected]>
http://www.veltrac.com.br <http://www.veltrac.com.br/>
/Fone Com.: (43)2105-5601/
/Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/
/Londrina- PR/
/Cep: 86015-010/
#1 lore raw

man iptables v.1.3.7
MATCH EXTENSIONS
iptables can use extended packet matching modules. These are
loaded in two ways: implicitly, when -p or --protocol is specified, or with the -m or --match options, followed by the matching module name; after these, various extra command line options become avail- able, depending on the specific module.

#2 lore raw
In reply to Leonardo Carneiro

Look in the manpage of iptables.

-m loads the iptables extension.

On Tue June 2 2009 wrote Leonardo Carneiro:

Quoted 8 lines

what the '-m' flag does in iptables? i'd search google and read the manual, but did not found anything.

a old script running in a firewall of my network have some rules like
these: iptables -A PREROUTING -p udp -m udp -d $inet_ip -i eth0 --dport 8282 -j DNAT --to-destination 192.168.1.102

tks in

--
Christoph Paasch

www.rollerbulls.be
--

#4 lore raw
In reply to a message not in the archive

in the manual version in the server the flag was not present. a more updated version has the description, but was not together with the other flags. sorry for the mistake, anyway.

Billy Crook escreveu:

Quoted 12 lines
Quoted 2 lines · Leonardo Carneiro

what the '-m' flag does in iptables? i'd search google and read the manual,

Evidently not.

man iptables
[/] then [Spacebar] then [-] then [m] then [Enter]

Signature · 8 lines
*Leonardo de Souza Carneiro*
*Veltrac - Tecnologia em Logística.*
[email protected] <mailto:[email protected]>
http://www.veltrac.com.br <http://www.veltrac.com.br/>
/Fone Com.: (43)2105-5601/
/Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/
/Londrina- PR/
/Cep: 86015-010/