Project

General

Profile

« Previous | Next » 

Revision 036f7009

Added by Scott Ullrich almost 20 years ago

Fix a XXX

View differences:

etc/inc/filter.inc
38 38
require_once("pkg-utils.inc");
39 39
require_once("notices.inc");
40 40

  
41
function filter_resync() {
42
	global $config, $g;
43

  
44
	mwexec("/sbin/pfctl -y"); /* XXX */
45
}
46

  
47 41
function filter_pflog_start() {
48 42
	global $config, $g;
49 43

  
......
1859 1853

  
1860 1854
# PPTPd rules
1861 1855
anchor "pptp"
1862
#pass quick proto gre from any to $pptpdtarget keep state label "allow gre pptpd"
1863
#pass quick proto tcp from any to $pptpdtarget port = 1723 keep state label "allow pptpd $pptpdtarget"
1864
# XXX: fix me!
1865 1856
pass quick proto gre from any to any keep state label "allow gre pptpd"
1866 1857
pass quick proto tcp from any to any port = 1723 keep state label "allow pptpd $pptpdtarget"
1867 1858

  
......
2286 2277
		return $padr . "/" . $pmask;
2287 2278
        }
2288 2279
	
2289
	/* XXX: do not return wan, lan, etc */
2290 2280
	if(strstr($adr['network'], "wan") or strstr($adr['network'], "lan") or strstr($adr['network'], "opt")) 
2291 2281
		return convert_ip_to_network_format($config['interfaces'][$adr['network']]['ipaddr'],
2292 2282
		       $config['interfaces'][$adr['network']]['subnet']);
etc/inc/pfsense-utils.inc
430 430
		if(stristr($int, $carpinterface) == true)
431 431
		$found_interface=1;
432 432
	}
433
	/* XXX: Should never reach this */
434 433
	return;
435 434
}
436 435

  
etc/rc.newwanip
53 53
	system_start_ftp_helpers();
54 54

  
55 55
	/* resync ipfilter */
56
	filter_resync();
56
	filter_configure_sync();
57 57

  
58 58
	/* reconfigure IPsec tunnels */
59 59
	vpn_ipsec_configure(true);
usr/local/www/diag_logs_filter.php
34 34
require("guiconfig.inc");
35 35

  
36 36
$filter_logfile = "{$g['varlog_path']}/filter.log";
37
//exec("/usr/sbin/tcpdump -n -e -ttt -r {$g['varlog_path']}/pflog | logger -t pf -p local0.info ");
38 37

  
39 38
$nentries = $config['syslog']['nentries'];
40 39
if (!$nentries)
......
75 74
		if(stristr($logent, "UDP") == true)
76 75
			$flent['proto'] = "UDP";
77 76
		
78
		/* XXX: fetch time? */
79 77
		$flent['time'] 		= $log_split[1];
80 78
		$flent['act'] 		= $log_split[3];
81 79
		$flent['interface'] 	= strtoupper(convert_real_interface_to_friendly_interface_name(str_replace(":","",$log_split[4])));
usr/local/www/pkg_edit.php
309 309
			echo "<input type='password' " . $size . " name='" . $pkga['fieldname'] . "' value='" . $value . "'>\n";
310 310
			echo "<br>" . fixup_string($pkga['description']) . "\n";
311 311
	      } else if($pkga['type'] == "select") {
312
		  // XXX: TODO: set $selected
313 312
                  if($pkga['size']) $size = " size='" . $pkga['size'] . "' ";
314 313
		  if($pkga['multiple'] == "yes") $multiple = "MULTIPLE ";
315 314
		    echo "<select " . $multiple . $size . "id='" . $pkga['fieldname'] . "' name='" . $pkga['fieldname'] . "'>\n";

Also available in: Unified diff