• Skip to main content
  • Skip to primary sidebar

BSDFreaks.nl

For starters and advanced *BSD users

Tags

brand dmi enschede FreeBSD harddisk Hardware Howto's Howto's move new ports server serverruimte universiteit utwente

Howto's

[FreeBSD] Installing GlFtpd

June 3, 2002 by Rob

GlFtpd is een zeer configureerbare ftp server welke je beheerd via de ftp console. Je werkt met virtuele users waardoor je dus onafhankelijk bent van de shell users van je base systeem.

Als eerst gaan we de packages ophalen.

[shell]# cd ~
# fetch http://www.glftpd.com/oldpage/glftpd-LNX_1.26.tgz
# fetch http://www.glftpd.com/oldpage/glftpd-FBSD4_1.26.binsonly.tgz
[/shell]

Nu ff uitpakken

[shell]# tar xzf glftpd-LNX_1.26.tgz && tar xzf glftpd-FBSD4_1.26.binsonly.tgz
# cd glftpd-LNX_1.26
[/shell]

Nu kan je het install script draaien.

[shell]# ./installgl.sh
Welcome to jehsom’s glFtpD installer‚ version 1.06
Please enter the directory to install glftpd to [/glftpd]: /usr/local/etc/glftpd

– – – –
| | | |
| | | |
| | | |
– – – –
Enter the port you woud like glftpd to listen on [21]: 21

Congratulations‚ glFtpD has been installed. Scroll up and note any errors that need fixing. A log of the installation script is in ./installgl.debug
To get your site running‚ you must edit /etc/glftpd.conf according to the
instructions in /usr/local/etc/glftpd/glftpd.docs. For help‚ visit #glftpd on EFnet.
After configuring glftpd‚ visit my scripts page at http://scripts.jehsom.com
and the glftpd pages at http://www.glftpd.com and http://www.glftpd.org‚
and pick up some scripts to give your site some style!

Thanks for your support!
jehsom and the glFtpD team
[/shell]

Nu de FreeBSD package installeren.

[shell]# cd ../glftpd-FBSD4_1.26.binsonly
# cp * /usr/local/etc/glftpd/bin/
[/shell]

We gaan nu even tegen de documentatie in NIET inetd gebruiken omdat deze daemon niet echt meer van deze tijd is‚ in plaats daarvan gaan we tcpserver gebruiken. Tcpserver is bestand tegen DoS aanvallen en heeft betere filter mogelijkheden. Tcpserver is onderdeel van ucspi-tcp package dus die installeren we. Je kan meer informatie over tcpserver vinden op [url]http://cr.yp.to/ucspi-tcp/tcpserver.html[/url].

[shell]# cd /usr/ports/sysutils/ucspi-tcp
# make install clean
[/shell]

We gaan zelf een opstart script maken.

[shell]# ee /usr/local/etc/rc.d/glftpd.sh
[/shell]

En hierin zetten we:

[shell]#!/usr/local/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin
export PATH
exec tcpserver -DHRl0 0 21021 /usr/local/etc/glftpd/bin/glftpd -l -o -i -n 1 -r /etc/glftpd.conf -s/usr/local/etc/glftpd/bin/glstrings.bin 2>&1 &
[/shell]

Save deze file en dan moeten we deze executable maken en uitvoeren

[shell]# chmod +x /usr/local/etc/rc.d/glftpd.sh
# /usr/local/etc/rc.d/glftpd.sh
[/shell]

We nemen eerst poort 21021‚ de server is beveiligd dus je kan niet meteen poort 21 pakken‚ om hem te testen en te configureren.
Even inloggen om de boel te configureren.

[shell]# ftp localhost 21021
[/shell]

Gebruik nu als username/password: glftpd/glftpd
En als het goed is zie je dan het volgende schermpje!

[shell]230- _____
230- ______________________________|__ |____ ________________________________
230- _ / _ / _ / | | _ / _ / _ /
230- / / / /____/. | | / / /____/. /_____/
230- ________/____/ /______ |___|____|___/ /______ |____|
230- .-=———– /____/ —- |____| ——— /____/ —- |____| ——-=-.
230- `-=——————————————————————-=-‘
230- `—–( Type ‘site onel MESSAGE’ to enter your message )—–‘
230 User glftpd logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
[/shell]

Ok dat is gelukt!
Nu de server configureren.
We gaan een admin user toevoegen.

[shell]ftp> site adduser admin password *@192.168.1.1
ftp> site change admin flags +1
[/shell]

Er mag nu door admin alleen ingelogd worden vanaf 192.168.1.1.
Nu kan je de server op poort 21 zetten als je dat wilt.

[shell]# ee /usr/local/etc/rc.d/glftpd.sh

#!/usr/local/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin
export PATH
exec tcpserver -DHRl0 0 21 /usr/local/etc/glftpd/bin/glftpd -l -o -i -n 1 -r /etc/glftpd.conf -s/usr/local/etc/glftpd/bin/glstrings.bin 2>&1 &
[/shell]

Probeer nu eens in te loggen vanaf een remote client (192.168.1.1)
Lukt dit? Dan kan je users gaan toevoegen..

Wil je meer commando’s oid weten raadpleeg dan de [url=http://www.glftpd.com/oldpage/glftpd.docs]documentatie[/url].

Kom je er niet uit… 😉 Dan kan je altijd je vragen kwijt op het forum of irc..

Filed Under: FTP server

Tune je *BSD machine

May 31, 2002 by Rob

Bron: [url=http://ezine.daemonnews.org/]DaemonNews[/url]

Zou je graag willen dat je *BSD systeem wat sneller was? In dit artikel kan je lezen hoe je je systeem kan optimaliseren.

[quote]This month we bring you a column on tuning your BSD system to best suit your needs and wants. Obviously‚ because everyone has different requirements‚ there may well be myriad different ways to tweak your system. If you run more than one machine you may wish to tune each differently.
[/quote]

[url=http://ezine.daemonnews.org/200204/answerman.html]Het artikel[/url]

Filed Under: Howto's

Basic security with passwords

May 29, 2002 by Rob

Bron: [url=http://www.net-security.org/]Net-security.org[/url]

In het volgende artikel staat interessante informatie betreft “je password”. Aangezien dit de sleutel is tot je prive gegevens moet je zorgen dat deze sluitel niet te simpel is.

[quote]The password. It really gives you power doesn’t it? You’re the only one that has the “key” to the workstation or something else that has to be kept away from prying eyes. If you’re using a password than there must be something worth protecting‚ so why not make this protection a good one?
[/quote]

[url=http://www.net-security.org/article.php?id=117]Het hele artikel[/url]

Filed Under: Howto's

Secure BIND [vervangen]

May 27, 2002 by Rob

In deze howto gaan we er voor zorgen dat je Berkeley Internet Name Domain (BIND) zo veilig mogelijk is. Zoals je waarschijnlijk wel weet is deze DNS deamon open source‚ en zijn er regelmatig security leaks (zie www.cert.org). Dit verhoogt de kans dat je systeem gehackt/-crackt wordt. Zowieso is het niet slim om netwerk services as root te draaien.

EN TOEN???
Ask spine 😛
Als iemand em toevallig uitgeprint/kopieerd/uitgeschreven/opgeslagen heeft‚
kan die em dan mailen naar laagje@laagje.net ??
THnx

Daarom 2 vervangende links:
[url=http://www.miceandmen.com/docs/DNS&BIND_security.pdf]Link1[/url]
[url=http://www.oreilly.com/catalog/dns4/chapter/ch11.html#10959]Link2[/url]

Filed Under: Security

Apache: VirtualHost & Suexec

May 24, 2002 by Rob

Hier een aantal handige links over VirtualHosts en Suexec bij apache

[url=http://httpd.apache.org/docs/vhosts/index.html] virualhosts[/url]
[url=http://httpd.apache.org/docs/suexec.html] suexec [/url]

Als je vragen hebt -> laagje@laagje.net

Filed Under: Web server

[FreeBSD] Ruimte beperken voor gebruikers (QUOTAS)!!

May 24, 2002 by Rob

Stel je wilt niet dat mensen die toegang hebben tot jou machine hun personal helemaal volstouwen
met Gigabytes aan onzin/spullen. Dan kan je twee dingen doen:
– pw userdel user && rm -rf ~user
– QUOTAS!

We nemen de volgende situatie: een home partitie. Deze is in /etc/fstab bekent als
/dev/da1sg. In fstab staat dus de volgende regel:
[file]
# Device Mountpoint FStype Options Dump Pass#
/dev/da1sg /home ufs rw 2 2
[/file]

[b]Let’s START![/b]
Eerst gaan we de kernel compilen voor meer informatie hierover kijk [url=http://www.bsdfreaks.nl/index.php/front_howto/53/9]hier[/url]

voeg toe in je kernel config:
[file]
options QUOTA # We want to support quota!
[/file]

Nu ga je je kernel maken wederom verwijs ik naar de hotwo: Hoe een kernel bakken!

Als we daar mee klaar zijn, gaan we voordat we gaan rebooten het volgende doen:

– wijzig /etc/rc.conf en voeg toe:
[file]
enable_quotas=”YES”
check_quotas=”YES”
[/file]

– wijzig /etc/fstab achter de partitie die je wil hebben (in ons geval da1sg)
[file]
# Device Mountpoint FStype Options Dump Pass#
/dev/da1sg /home ufs rw,userquota,groupquota 2 2
[/file]

Nu kan je veilig rebooten. Zodra je weer ingelogt bent doe je het volgende:

[shell]
quotacheck -avug
[/shell]

Nu wordt er in /home twee bestanden geplaatst: quota.user en quota.group. Hierin zullen
de gezette quota’s in opgeslagen worden.

[shell]
edquota -u gebruiker
[/shell]

Nu wordt de editor die je gezet hebt in $EDITOR of vi geopend om de quotas te gaan wijzigen..
Je ziet het volgende:

[shell]
Quotas for user gebruiker:
/home: blocks in use: 65, limits (soft = 50,hard = 75)
inodes in use: 7‚ limits (soft = 50,hard = 60)
[/shell]

De blocks zijn hier in blokken van 1 Kilobyte aangegeven. (Oftwel gebruiker heeft hier 65 Kb in gebruik). Soft betekent dat de gebruiker een quota heeft van 50 KB maar dat hij een week lang tot 75 Kb kan (hard). Als hij na een week dan nog steeds meer dan 50 KB in gebruik heeft wordt het ‘hard’ limit ook 50 en kan de gebruiker niets meer wegschrijven totdat hij zijn personal opgeruimt heeft.

Om een group quotas te geven doe je natuurlijk simpel weg:

[shell]
edquota -g group
[/shell]

Om te bekijken hoeveel quota een gebruiker of group heeft en hoeveel ze ingebruik hebben:

[shell]
quota -uv
quota -ug
[/shell]

Success!

Voor vragen en/of opmerkingen -> bsdfreakshowtos@laagje.net

Filed Under: Sysutils

[FreeBSD] Backing up Files with Tar

May 24, 2002 by Rob

Bron: [url=http://www.onlamp.com]Onlamp[/url]

Met deze howto leer je hoe je met Tar makkelijk backups kan maken en hoe je deze backups weer kan restoren.

[url=http://www.onlamp.com/pub/a/bsd/2002/05/23/FreeBSD_Basics.html]De howto[/url]

Filed Under: FreeBSD

[FreeBSD] Dual-Booting FreeBSD and

April 3, 2002 by Rob

Bron: [url=http://www.onlamp.com]Onlamp[/url]

In dit artikel verteld Micheal Lucas hoe je een dual boot system kan opzetten met FreeBSD -stable en -current. Zodat mensen FreeBSD -current wat meer kunnen gaan testen.

[quote]I’m one of those people who is sacrificing a small portion of their mental health to the greater good, by testing FreeBSD-current. Now that we’re approaching FreeBSD 5.0, the FreeBSD Project needs people to test -current in a wide variety of installations and environments.
[/quote]

[url=http://www.onlamp.com/pub/a/bsd/2002/05/09/Big_Scary_Daemons.html]Het hele artikel[/url]

Filed Under: FreeBSD

[*BSD] Wat voor soort firewall heb je?

April 3, 2002 by Rob

Er zijn drie artikelen verschenen over het hoe en wat met firewall op *NIX sytemen.
Erg handig als je nog niet zo bekend bent met firewalls.
[url=http://www.freebsdforums.org/forums/showthread.php?threadid=694]Link[/url]

Filed Under: Firewall

[PHP] Managing Images With a Web Database Application

April 3, 2002 by Rob

Met deze howto kan je een simpele web database(MySQL) applicatie maken waarmee je gebruikers fotos (of andere files) kan laten uploaden en downloaden.

[quote]Web developers often need to store images‚ sounds‚ movies‚ and documents in a database and deliver these to users. In this article‚ I’ll show you how to develop a simple Web database application that allows users to upload and retrieve images‚ but can easily be adapted to storing files of any type.
[/quote]

[url=http://www.onlamp.com/pub/a/onlamp/2002/05/09/webdb2.html]Het hele artikel[/url]

Filed Under: Programming

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Interim pages omitted …
  • Page 10
  • Go to Next Page »

Primary Sidebar

Pages

  • Howto overview
  • iPhone mail setup
  • Links

Categories

  • *BSD news from the past
  • Console
  • Firewall
  • FreeBSD
  • FTP server
  • Hardware
  • Howto's
  • Installation
  • Kernel
  • Mail server
  • Miscellaneous
  • Networking
  • News
  • News imported
  • OpenBSD
  • Operating System
  • Programming
  • Security
  • Site news
  • Software
  • Sysutils
  • Web server

Recent Comments

  • admin on Qmail FreeBSD Mail Toaster Spam en virus control addon
  • admin on [FreeBSD] Het opzetten van een Vlan
  • Jap on [FreeBSD] Installing GlFtpd
  • Jap on [FreeBSD] Installing GlFtpd
  • Crashjuh on Wireless access point met OpenBSD + VPN

Copyright © 2025 · Genesis Sample Theme on Genesis Framework · WordPress · Log in