[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[2403]
From:       dotzball () users ! sourceforge ! net
Date:       2009-01-30 19:58:07
Message-ID: E1LSzV9-0003fx-Qr () bj8yhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 2403
          http://ipcop.svn.sourceforge.net/ipcop/?rev=2403&view=rev
Author:   dotzball
Date:     2009-01-30 19:58:07 +0000 (Fri, 30 Jan 2009)

Log Message:
-----------
Let puzzleFwRules.pl create the necessary iptables rules for IPcop DHCP.

Modified Paths:
--------------
    ipcop/trunk/src/misc-progs/restartdhcp.c

Modified: ipcop/trunk/src/misc-progs/restartdhcp.c
===================================================================
--- ipcop/trunk/src/misc-progs/restartdhcp.c	2009-01-30 19:57:46 UTC (rev 2402)
+++ ipcop/trunk/src/misc-progs/restartdhcp.c	2009-01-30 19:58:07 UTC (rev 2403)
@@ -41,7 +41,7 @@
 {
     printf("Usage: %s [OPTION]\n\n", prg);
     printf("Options:\n");
-    printf("  -b, --boot            after booting create rules only\n"); 
+    printf("  -b, --boot            after booting create rules only\n");
     printf("                            no need to restart DHCPd\n");
     printf("  -v, --verbose         be verbose\n");
     printf("      --help            display this help and exit\n");
@@ -129,26 +129,6 @@
         safe_system("/etc/rc.d/rc.dnsmasq restart");
     }
 
-    /* flush iptables (if any) */
-    verbose_printf(2, "Flushing DHCP iptables chain ... \n");
-    safe_system("/sbin/iptables -F DHCPBLUEINPUT");
-
-    if (enabled_count == 0) {
-        /* no devices with dhcp enabled */
-        return 0;
-    }
-
-    /* add iptables rule(s) for dhcp on blue */
-    verbose_printf(1, "Filling DHCP iptables chain ... \n");
-    for (j = 1; j <= MAX_NETWORK_COLOUR; j++) {
-        if (enabled[BLUE][j]) {
-            snprintf(buffer, STRING_SIZE,
-                     "/sbin/iptables -A DHCPBLUEINPUT -p udp --source-port 68 \
                --destination-port 67 -i %s -j ACCEPT > /dev/null 2>&1",
-                     ipcop_ethernet.device[BLUE][j]);
-            safe_system(buffer);
-        }
-    }
-
     /* start dnsmasq not necessary */
 
     return 0;


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic