Re: IP set and match skiping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 3 Oct 2010, Daniel Dehennin wrote:

> I want to avoid duplication, I have one ipporthash for my DMZ services
> (behind a NAT) and would like to be able to skip some tests or fix one
> argument:
> 
> ipset -N dmz-services ipporthash --network 10.1.1.0/24
> ipset -A dmz-services 10.1.1.2,www
> ipset -A dmz-services 10.1.1.2,smtp
> ipset -A dmz-services 10.1.1.2,ssh
> 
> # DNAT by server
> # Match only ports 
> iptables -t nat -A PREROUTING -i internet -m set --match-set dmz-services skip,dst -j DNAT 10.1.1.2
> 
> Another this if several dmz servers hosts different services:
> 
> # Add a new service for a new host
> ipset -A dmz-services 10.1.1.3,kerberos
> 
> # Match services hosted on 10.1.1.2
> iptables -t nat -A PREROUTING -i internet -m set --match-set dmz-services 10.1.1.2,dst -j DNAT 10.1.1.2
> # Match services hosted on 10.1.1.3
> iptables -t nat -A PREROUTING -i internet -m set --match-set dmz-services 10.1.1.3,dst -j DNAT 10.1.1.3
> 
> Is it a possible-to-add feature?

No, that's not possible. The internal lookup methods do not support such 
wildcards.

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux