Skip to contentSkip to conversation

hi..

DISCUSSION Arindam Haldar 2 participants 3 messages Dec 9, 2002

lore
Share & tools
lore
#0 lore raw

hi all,

just a thought....
i want to know if the -N flag is avaiable for PREROUTING/POSTROUTING mangle/nat etc ? i know the below is possible ...
iptables -N myTable
iptables -A INPUT -s <ip> -j myTable

but if want to do this-->>
iptables -A POSTROUTING -t nat -s <> -j myTableTwo or
iptables -A PRETROUTING -t mangle -s <> -j myTableTwo is it possible ?.. how do i create a new table for this ?

thanking in advance..
A.H

#1 lore raw
Quoted 9 lines · Arindam Haldar

hi all,

just a thought....
i want to know if the -N flag is avaiable for PREROUTING/POSTROUTING mangle/nat etc ?
i know the below is possible ...
iptables -N myTable
iptables -A INPUT -s <ip> -j myTable

Quoted 5 lines

but if want to do this-->>
iptables -A POSTROUTING -t nat -s <> -j myTableTwo or
iptables -A PRETROUTING -t mangle -s <> -j myTableTwo is it possible ?.. how do i create a new table for this ?

try this:
iptables -t nat -N test
iptables -A PREROUTING -t nat -s <> -j test

Quoted 2 lines

thanking in advance..
A.H

Signature · 19 lines
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  Raymond Leach                       )
 ) Knowledge Factory                  (
(                                      )
 ) Tel: +27 11 445 8100               (
(  Fax: +27 11 445 8101                )
 )                                    (
(  http://www.knowledgefactory.co.za/  )
 ) http://www.saptg.co.za/            (
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   o                                o
    o                              o
        .--.                  .--.
       | o_o|                |o_o |
       | \_:|                |:_/ |
      / /   \\              //   \ \
     ( |     |)            (|     | )
     /`\_   _/'\          /'\_   _/`\
     \___)=(___/          \___)=(___/
#2 lore raw
Quoted 17 lines · Raymond Leach
Quoted 8 lines · Arindam Haldar

hi all,

just a thought....
i want to know if the -N flag is avaiable for PREROUTING/POSTROUTING mangle/nat etc ? i know the below is possible ...
iptables -N myTable
iptables -A INPUT -s <ip> -j myTable

Quoted 5 lines

but if want to do this-->>
iptables -A POSTROUTING -t nat -s <> -j myTableTwo or
iptables -A PRETROUTING -t mangle -s <> -j myTableTwo is it possible ?.. how do i create a new table for this ?

Quoted 4 lines

try this:
iptables -t nat -N test
iptables -A PREROUTING -t nat -s <> -j test

THANX so MUCH .....:)... it works...:)