[netfilter-cvslog] r4458 - trunk/nfsim-testsuite/01iptables

laforge at netfilter.org laforge at netfilter.org
Sat Nov 5 12:50:07 CET 2005


Author: laforge at netfilter.org
Date: 2005-11-05 12:50:04 +0100 (Sat, 05 Nov 2005)
New Revision: 4458

Modified:
   trunk/nfsim-testsuite/01iptables/15namelookup.sim
Log:
don't depend on NAT to check whether NS lookups work


Modified: trunk/nfsim-testsuite/01iptables/15namelookup.sim
===================================================================
--- trunk/nfsim-testsuite/01iptables/15namelookup.sim	2005-11-05 10:18:54 UTC (rev 4457)
+++ trunk/nfsim-testsuite/01iptables/15namelookup.sim	2005-11-05 11:50:04 UTC (rev 4458)
@@ -1,13 +1,13 @@
 # Test that name lookup works.
 
 # This succeeds.
-iptables -t nat -A POSTROUTING -s localhost -d localhost -p tcp -j SNAT --to-source 192.168.1.1
-iptables -t nat -D POSTROUTING -s 127.0.0.1 -d 127.0.0.1 -p tcp -j SNAT --to-source 192.168.1.1
+iptables -A INPUT -s localhost -d localhost -p tcp -j ACCEPT
+iptables -D INPUT -s 127.0.0.1 -d 127.0.0.1 -p tcp -j ACCEPT
 
 # These will fail.
 expect iptables iptables: command failed
-iptables -t nat -A POSTROUTING -n -s localhost -d 127.0.0.1 -p 6 -j SNAT --to-source 192.168.1.1
+iptables -A INPUT -n -s localhost -d 127.0.0.1 -p 6 -j ACCEPT
 expect iptables iptables: command failed
-iptables -t nat -A POSTROUTING -n -s 127.0.0.1 -d localhost -p 6 -j SNAT --to-source 192.168.1.1
+iptables -A INPUT -n -s 127.0.0.1 -d localhost -p 6 -j ACCEPT
 expect iptables iptables: command failed
-iptables -t nat -A POSTROUTING -n -s 127.0.0.1 -d 127.0.0.1 -p tcp -j SNAT --to-source 192.168.1.1 
+iptables -A INPUT -n -s 127.0.0.1 -d 127.0.0.1 -p tcp -j ACCEPT




More information about the netfilter-cvslog mailing list