]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- updated static-nat (reversed parameters) so it works now as intended (as
authoralchemyx <alchemyx@pld-linux.org>
Fri, 8 Nov 2002 23:45:05 +0000 (23:45 +0000)
committeralchemyx <alchemyx@pld-linux.org>
Fri, 8 Nov 2002 23:45:05 +0000 (23:45 +0000)
  described in docs)

svn-id: @1046

sysconfig/network-scripts/functions.network
sysconfig/static-nat

index b8c855d03e6f34268a354d49ca2d76df37acc6e9..b8e570774061360ef7958e88cc875212c8d63dbd 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $Id: functions.network,v 1.5 2002/08/24 16:05:52 misiek Exp $
+# $Id: functions.network,v 1.6 2002/11/08 23:45:05 alchemyx Exp $
 # 
 # This is not a shell script; it provides functions to network scripts
 # that source it.
@@ -74,11 +74,11 @@ typeset src via dst
 if [ -r /etc/sysconfig/static-nat ]; then
        grep "^[0-9]" /etc/sysconfig/static-nat | while read src via dst; do
                if [ "$1" = "on" ]; then
-                       /sbin/ip route add nat $src via $dst
-                       /sbin/ip rule add from $dst nat $src
+                       /sbin/ip route add nat $dst via $src
+                       /sbin/ip rule add from $src nat $dst
                elif [ "$1" = "off" ]; then
-                       /sbin/ip rule del from $dst nat $src
-                       /sbin/ip route del nat $src via $dst
+                       /sbin/ip rule del from $src nat $dst
+                       /sbin/ip route del nat $dst via $src
        fi
        done
 fi
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c98886c25c82aa76d6a1522a6fab7bf157c64008 100644 (file)
@@ -0,0 +1 @@
+# <IP>[/<mask>]         via <IP>                                                # 192.168.1.1           via 1.1.1.1                                             # 192.168.2.1/24        via 1.1.1.1                                             
This page took 0.05176 seconds and 4 git commands to generate.