[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] iptables, hvordan undlades flere subnets ved nat ?



Tak for dit tip - det virkede desværre ikke :(

/Henrik

Mogens Kjaer skrev:

On 06/07/2012 08:53 PM, Henrik Andresen wrote:
Kunne jeg bare lave denne regl ville det være dejligt :(

-t nat -A POSTROUTING -s 10.1.1.14/32 ! -d
10.0.0.0/22,172.25.192.0/18,192.168.0/22 -o eth1 -j MASQUERADE

Kan du ikke:

-A POSTROUTING -s 10.1.1.14/32 -d 10.0.0.0/22 -o eth1 -j RETURN
-A POSTROUTING -s 10.1.1.14/32 -d 172.25.192.0/18 -o eth1 -j RETURN
-A POSTROUTING -s 10.1.1.14/32 -d 192.168.0.0/22 -o eth1 -j RETURN
-t nat -A POSTROUTING -s 10.1.1.14/32 -o eth1 -j MASQUERADE

Mogens





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2012-07-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *