Netgate SG-1000 microFirewall

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jeroen234

Pages: [1]
1
Development / how to get php to use a mysql server on pfsense ???
« on: January 06, 2007, 10:53:14 am »
hi,

i try to use mysql on pfsense from php
but php don't get the mysql
i think i missed somting this is wat i have done :

pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.2-RC2/packages/databases/mysql-server-5.1.11.tbz
 /usr/local/bin/mysql_install_db
chmod 777 /var/db/mysql
chmod 777 /var/db/mysql/mysql
chmod 777 /var/db/mysql/mysql/*.*
mv /usr/local/etc/rc.d/mysql-server /usr/local/etc/rc.d/mysql-server.sh
vi /usr/local/etc/rc.d/mysql-server.sh

chanced
: ${mysql_enable="NO"}
to
: ${mysql_enable="YES"}
save the file

vi /usr/local/lib/php.ini
add
extension=mysql.so
save the file


cd /tmp
mkdir php
cd php
fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/All/php4-mysql-4.4.4_1.tbz
tar -xjvf php4-mysql-4.4.4_1.tbz
cd lib/php/20020429/
cp mysql.so /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mysql.so
chmod 755 /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mysql.so


but afther a reboot still no mysql suport in php
the mysql server is started


2
Packages / making a package turn op on Diagnostics: Package logs
« on: December 25, 2006, 04:32:24 am »
hello,

iam trying to get the freeradius package to show on the Diagnostics: Package logs
i have started freeradius with
radiusd -sxxyz > /var/log/freeradius.log &

to config.xml i have added the logcommands to the freeradius part

Code: [Select]
<package>
<name>freeradius</name>
<website>http://www.freeradius.org/</website>
<descr>A free implementation of the RADIUS protocol.</descr>
<category>System</category>
<version>1.1.2</version>
<status>BETA</status>
<required_version>1.0</required_version>
<maintainer>fernando@netfilter.com.br</maintainer>
<depends_on_package_base_url>http://www.pfsense.com/packages/All</depends_on_package_base_url>
<depends_on_package>freeradius-1.1.3_1.tbz</depends_on_package>
<depends_on_package>libltdl-1.5.22.tbz</depends_on_package>
<config_file>http://www.pfsense.org/packages/config/freeradius.xml</config_file>
<configurationfile>freeradius.xml</configurationfile>
                     <logging>
                     <logfilename>freeradius.log</logfilename>   
                     </logging>
      </package>

but on Diagnostics: Package logs i still get:
No packages with logging facilities are currently installed.

do i need more to get this to work ?

3
Development / how to make a diff file for pfsense ???
« on: December 06, 2006, 12:32:49 pm »
how do you make a diff file for pfsense ???
i have downloaded diff from http://www.pfsense.com/~sullrich/extra/diff
witch option are needed to make the diff for pfsense ?

# diff --help
Usage: diff [OPTION]... FILE1 FILE2

  -i  --ignore-case  Consider upper- and lower-case to be the same.
  -w  --ignore-all-space  Ignore all white space.
  -b  --ignore-space-change  Ignore changes in the amount of white space.
  -B  --ignore-blank-lines  Ignore changes whose lines are all blank.
  -I RE  --ignore-matching-lines=RE  Ignore changes whose lines all match RE.
  -a  --text  Treat all files as text.

  -c  -C NUM  --context[=NUM]  Output NUM (default 2) lines of copied context.
  -u  -U NUM  --unified[=NUM]  Output NUM (default 2) lines of unified context.
    -NUM  Use NUM context lines.
    -L LABEL  --label LABEL  Use LABEL instead of file name.
    -p  --show-c-function  Show which C function each change is in.
    -F RE  --show-function-line=RE  Show the most recent line matching RE.
  -q  --brief  Output only whether files differ.
  -e  --ed  Output an ed script.
  -n  --rcs  Output an RCS format diff.
  -y  --side-by-side  Output in two columns.
    -W NUM  --width=NUM  Output at most NUM (default 130) characters per line.
    --left-column  Output only the left column of common lines.
    --suppress-common-lines  Do not output common lines.
  -DNAME  --ifdef=NAME  Output merged file to show `#ifdef NAME' diffs.
  --GTYPE-group-format=GFMT  Similar, but format GTYPE input groups with GFMT.
  --line-format=LFMT  Similar, but format all input lines with LFMT.
  --LTYPE-line-format=LFMT  Similar, but format LTYPE input lines with LFMT.
    LTYPE is `old', `new', or `unchanged'.  GTYPE is LTYPE or `changed'.
    GFMT may contain:
      %<  lines from FILE1
      %>  lines from FILE2
      %=  lines common to FILE1 and FILE2
      %[-][WIDTH][.[PREC]]{doxX}LETTER  printf-style spec for LETTER
        LETTERs are as follows for new group, lower case for old group:
          F  first line number
          L  last line number
          N  number of lines = L-F+1
          E  F-1
          M  L+1
    LFMT may contain:
      %L  contents of line
      %l  contents of line, excluding any trailing newline
      %[-][WIDTH][.[PREC]]{doxX}n  printf-style spec for input line number
    Either GFMT or LFMT may contain:
      %%  %
      %c'C'  the single character C
      %c'\OOO'  the character with octal code OOO

  -l  --paginate  Pass the output through `pr' to paginate it.
  -t  --expand-tabs  Expand tabs to spaces in output.
  -T  --initial-tab  Make tabs line up by prepending a tab.

  -r  --recursive  Recursively compare any subdirectories found.
  -N  --new-file  Treat absent files as empty.
  -P  --unidirectional-new-file  Treat absent first files as empty.
  -s  --report-identical-files  Report when two files are the same.
  -x PAT  --exclude=PAT  Exclude files that match PAT.
  -X FILE  --exclude-from=FILE  Exclude files that match any patter
  -S FILE  --starting-file=FILE  Start with FILE when comparing dir

  --horizon-lines=NUM  Keep NUM lines of the common prefix and suff
  -d  --minimal  Try hard to find a smaller set of changes.
  -H  --speed-large-files  Assume large files and many scattered sm

  -v  --version  Output version info.
  --help  Output this help.

If FILE1 or FILE2 is `-', read standard input.
#



4
Traffic Shaping / pfsense 1.0 rc2h pf rules + ipfw dummynet traficshaping
« on: September 24, 2006, 12:59:19 am »
hi,

will this break the pf rules ?
i have a 8000/1024 cable connection
i want to shape that with dummynet for my lan network (192.168.1.0/24)
i used these commands

#kldload dummynet.ko
#pfctl -d
#ipfw add pipe 1 ip from 192.168.1.0/24 to any out
#ipfw add pipe 2 ip from any to 192.168.1.0/24 in
#ipfw pipe 1 config mask src-ip 0x000000ff bw 1024Kbit/s queue 20
 #ipfw pipe 2 config mask dst-ip 0x000000ff bw 8000Kbit/s queue 20
#pfctl -e

i can see with
#ipfw pipe show | head -n 20
that dummynet is working how can i test if pf is still working ?



5
Development / error making full-update
« on: February 24, 2006, 01:14:57 pm »
i got a error about a key that can't be loaded
see picture

6
Just thought it is about time to set up some basic rules for the forum usage (and other communication channels as well)

    * Allways search forum, FAQ and WIKI before asking, We do have them so that we will not have to answer every question over and over.

> gebruik altijd eerst de zoek functie van het forum,faq en wiki voor je wat vraagt, we hebben ze zo dat we niet iedere vraag steeds opnieuw moeten beantwoorden

    * Do not crosspost ! if you are looking for quick answers try IRC first. If you do not get any answers there, try either Forum or mailing lists. NEVER both.

>   post je bericht niet op meedere forum gedeeltes. als je snel een antwoord zoekt probeer dan eerst IRC. als je daar geen antwoordt krijgt, probeer dan forum of mailing lijst maar nooit beide

    * Do not post just to post, if you have nothing informative to say, keep quiet. If your post gets deleted, take the hint !

> ga posten alleen maar voor het posten, als je niks zinnigs tezeggen heb hou je dan stil, wordt een bericht van je verwijderd begrijp de hint dan!!

    * Keep a nice tone !

> blijf beleeft tegen elkaar!

THESE RULES ARE NOT UP FOR DEBATE.

> over deze regels kan niet gediscuseerd worden

7
Nederlands / Welkom in het nederlands talige pfsense suport forum
« on: January 08, 2006, 03:36:16 am »
De officele pfsense taal is engels omdat bijna het hele pfsense ontwikkelings team uit de usa komt
wil je dus wat vragen aan het pfsense team dan zal je dit  in het engels  moeten doen

hier in dit forum gedeelte kan je gewoon nederlands type en dingen vragen
en zal indien nodig in het engels aan het pfsense team worden doorgegeven

veel plezier met posten
Jeroen

8
Nederlands / zijn er nog nederlanders/belgen hier ???
« on: January 08, 2006, 03:26:11 am »
zijn er nog meer nederlanders of belgen hier ??

ik kom uit lelystad


9
Packages / how to make pfsense packages ??
« on: December 14, 2005, 05:22:34 pm »
hi,

for a free wireless hotspot vpn mesh project
i need  info on how to make pfsense packages for using with pfsense
is there a how to some where on wat pfsense needs in it's packages?
to get it show up in pfsense gui

greetz Jeroen




Pages: [1]