From owner-freebsd-isp Tue Jul 9 0:19: 9 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A83B437B400 for ; Tue, 9 Jul 2002 00:19:05 -0700 (PDT) Received: from blue.centerone.com (blue.centerone.com [204.133.183.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED08F43E31 for ; Tue, 9 Jul 2002 00:19:04 -0700 (PDT) (envelope-from rforsythe@centerone.com) Received: from DELIVERANCE-XP.centerone.com (hs5-ifw.wiaas.org [65.102.239.61]) by blue.centerone.com (8.9.3/8.9.3) with ESMTP id BAA25895 for ; Tue, 9 Jul 2002 01:33:57 -0600 Message-Id: <5.1.0.14.2.20020709010532.01b80e90@mail.centerone.com> X-Sender: rforsythe@mail.centerone.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 09 Jul 2002 01:19:03 -0600 To: freebsd-isp@freebsd.org From: Ralph Forsythe Subject: New list member ... and stupid radius questions Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings all, I'm new to the list. And out the door I need to ask some lame questions... I am setting up a small ISP, and as my experience in the past has been under FreeBSD, I'm going with it here. I will be using a 4.6-stable (just updated yesterday) system with a digiboard and a 3com modem chassis (not important really, but just FYI). As for software, I'm planning on mgetty (current from the ports tree) handling the incoming calls. Not a real issue there, the PPP config for that is straightforward enough and has been documented a hundred times. However - I don't want to have this server authenticate from a secrets file or /etc/passwd. We have another server which will handle mail and web hosting among other tasks, and I want it to serve as a central authentication repository. I'm not hell bent on any auth protocol over another (encrypted transmission would be a big plus though) though the two I see most mentioned are RADIUS and LDAP. What I have read suggests that LDAP is a pain in the butt to make work with pppd, and RADIUS is easier; however I have seen 20 different configs for this, some people saying pppd under FreeBSD hates RADIUS, some people saying it works, and that coupled with having spent the last 5 days building servers and troubleshooting various things has my head spinning. I'm not a newbie with RADIUS but I've never set it up with pppd, so... If someone can ignore the stupidity in this and maybe point me to some resources on how to get RADIUS auth working with pppd/mgetty under FreeBSD that they know work (i.e. I have searched Google and the archives, and have seen so many different things I don't know which way to go), I would really appreciate it! Maybe I can save what little sanity I have left... :) Thanks! - Ralph Forsythe rforsythe@centerone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Tue Jul 9 4:22:35 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F07737B4D9 for ; Tue, 9 Jul 2002 04:22:31 -0700 (PDT) Received: from opium.co.za (opium.co.za [196.34.165.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id E814643E42 for ; Tue, 9 Jul 2002 04:22:28 -0700 (PDT) (envelope-from mark@opium.co.za) Received: from mark (helo=localhost) by opium.co.za with local-esmtp (Exim 3.35 #1 (Debian)) id 17Rt4Y-0005Tl-00 for ; Tue, 09 Jul 2002 13:22:22 +0200 Date: Tue, 9 Jul 2002 13:22:22 +0200 (SAST) From: Mark Bojara X-X-Sender: mark@opium.co.za To: freebsd-isp@freebsd.org Subject: Linux Emulation - 4.6-STABLE Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings, I am trying to set up freebsd linux emulation to run arkeia backup software. I have installed /usr/ports/emulators/linux_base-7. I have set it up in rc.conf and made sure that the module is loading without error. mars:~# kldstat Id Refs Address Size Name 1 3 0xc0100000 366728 kernel 2 1 0xc263d000 1b000 usb.ko 4 1 0xc2674000 14000 linux.ko mars:~# I have also brandelf'd all my binary's to linux. It seems like when I run any binary in /compat/linux it works fine (tried copying my binary to there didnt work). But if I run any other linux binary it just comes out with a error. I tried to also chroot to /compat/linux maybe that would help. So far this is the most accurate error that I have. mars:~/usr/knox/bin# chroot /compat/linux /bin/sh sh-2.04# ./arkeia Aborted sh-2.04# ldd ./arkeia /usr/bin/ldd: /lib/ld-linux.so.2: cannot execute binary file /usr/bin/ldd: /lib/ld-linux.so.2: cannot execute binary file ldd: /lib/ld-linux.so.2 exited with unknown exit code (126) sh-2.04# Any help will be appreciated. Regards, Mark Bojara ---------------------------------------------------------------- My cat makes me search the room for invisible intruders. ---------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Wed Jul 10 5:11:14 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BEAF37B400 for ; Wed, 10 Jul 2002 05:11:11 -0700 (PDT) Received: from mail.ecotech.com.lr (mail.liberiaonline.com.lr [64.110.100.164]) by mx1.FreeBSD.org (Postfix) with SMTP id 2DDD843E5E for ; Wed, 10 Jul 2002 05:11:06 -0700 (PDT) (envelope-from max@ecotech.com.lr) Received: (qmail 2536 invoked by uid 85); 10 Jul 2002 12:02:04 -0000 Received: from unknown (HELO wireless) (216.252.230.151) by mail.liberiaonline.com.lr with SMTP; 10 Jul 2002 12:02:03 -0000 Message-ID: <001d01c22800$fc3073a0$04ef10ac@wireless> From: "Max" To: Subject: IPFW Date: Wed, 10 Jul 2002 12:00:20 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001A_01C22809.5D4B2E20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_001A_01C22809.5D4B2E20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, How do I get IPFW (bandwidth limiting function) to work with logging for = later analysis, like determining bandwidth usage per ip? For example, I put an entire ip block in a 256K queue and I want to = check what each member of that block used... Hope the idea is = communicated... ${fwcmd} add queue 1 ip from [MY IP BLOCK] to any ${fwcmd} pipe 10 config bw 256kbit/s ${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip 0x000000ff =20 Max ------=_NextPart_000_001A_01C22809.5D4B2E20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
How do I get IPFW (bandwidth limiting = function) to=20 work with logging for later analysis, like determining bandwidth usage = per=20 ip?
 
For example, I put an entire ip block = in a 256K=20 queue and I want to check what each member of that block used... Hope = the idea=20 is communicated...
 
 ${fwcmd} add queue 1 ip = from [MY IP=20 BLOCK] to any
 ${fwcmd} pipe 10 config bw=20 256kbit/s
 ${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip=20 0x000000ff  
 
 
Max
------=_NextPart_000_001A_01C22809.5D4B2E20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Wed Jul 10 10:37:15 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9665B37B400 for ; Wed, 10 Jul 2002 10:37:11 -0700 (PDT) Received: from mail.dep.ufscar.br (mail.dep.ufscar.br [200.136.228.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id C045B43E31 for ; Wed, 10 Jul 2002 10:37:10 -0700 (PDT) (envelope-from alexandre@dep.ufscar.br) Received: from localhost (localhost.dep.ufscar.br [127.0.0.1]) by mail.dep.ufscar.br (Postfix) with ESMTP id 4B1FF66B11; Wed, 10 Jul 2002 14:37:06 -0300 (BRT) Received: from DELPHOS (delphos.dep.ufscar.br [200.136.228.127]) by mail.dep.ufscar.br (Postfix) with SMTP id 253C566B10; Wed, 10 Jul 2002 14:36:57 -0300 (BRT) From: Alexandre Bensi {'aledon'} To: fugspbr@fugspbr.org, freebsd@br.freebsd.org, freebsd-isp@freebsd.org Date: Wed, 10 Jul 2002 14:35:46 -0300 X-Priority: 3 (Normal) Message-Id: Subject: installing PPPD in a router-server (routed) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Mailer: Opera 6.03 build 1107 X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello world :) Why in the handbook of FreeBSD do they ask for for not installing PPPD in a router-server (routed)? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html [...] Set the router program to NO with following line in your /etc/rc.conf: router_enable="NO" It is important that the routed daemon is not started (it is started by default), as routed tends to delete the default routing table entries created by ppp. [...] Could the routing of my class of IP's fall or to be unstable? Thank you very much! -- Atenciosamente, Alexandre Bensi {'aledon'} System/Network Administrator -- Icq Uin at WORK | HOME: 118731900 | 129462580 E-Mail: echo alexandre dep ufscar br | sed 's/ /@/;s/ /./g' -- This mail send through Unix FreeBSD 4.5 STABLE - Amavis VScan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu Jul 11 8:21:27 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E28337B400 for ; Thu, 11 Jul 2002 08:21:22 -0700 (PDT) Received: from post.xecu.net (post.xecu.net [216.127.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id B69FA43E52 for ; Thu, 11 Jul 2002 08:21:21 -0700 (PDT) (envelope-from andy@xecu.net) Received: from thunder.xecu.net (thunder.xecu.net [216.127.136.208]) by post.xecu.net (Postfix) with ESMTP id E45C34807; Thu, 11 Jul 2002 11:21:15 -0400 (EDT) Received: by thunder.xecu.net (Postfix, from userid 100) id 8133B250FF; Thu, 11 Jul 2002 11:21:11 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by thunder.xecu.net (Postfix) with ESMTP id 79F3F250FC; Thu, 11 Jul 2002 11:21:11 -0400 (EDT) Date: Thu, 11 Jul 2002 11:21:11 -0400 (EDT) From: Andy Dills To: Max Cc: freebsd-isp@freebsd.org Subject: Re: IPFW In-Reply-To: <001d01c22800$fc3073a0$04ef10ac@wireless> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 10 Jul 2002, Max wrote: > Hi, > > How do I get IPFW (bandwidth limiting function) to work with logging for > later analysis, like determining bandwidth usage per ip? > > For example, I put an entire ip block in a 256K queue and I want to > check what each member of that block used... Hope the idea is > communicated... > > ${fwcmd} add queue 1 ip from [MY IP BLOCK] to any > ${fwcmd} pipe 10 config bw 256kbit/s > ${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip 0x000000ff To get accounting stats with ipfw, you'd need to add two rules for each IP, prior to the queue, such as: ${fwcmd} add allow ip from any to [IP] count ${fwcmd} add allow ip from [IP] to any count Then, the byte count corresponding with the first rule accounts for how much ingress bandwidth is used, and the byte count for the second rule accounts for how much egress bandwidth is used. Remember to check your stats daily! Store and reset daily, lest you lose important billing data. Andy xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Andy Dills 301-682-9972 Xecunet, LLC www.xecu.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dialup * Webhosting * E-Commerce * High-Speed Access To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu Jul 11 8:24:36 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67E7837B400; Thu, 11 Jul 2002 08:24:33 -0700 (PDT) Received: from bugs.elitsat.net (bugs.elitsat.net [213.208.10.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB07843E5E; Thu, 11 Jul 2002 08:24:30 -0700 (PDT) (envelope-from amour@bugs.elitsat.net) Received: from bugs.elitsat.net (amour@localhost.elitsat.net [127.0.0.1]) by bugs.elitsat.net (8.12.3/8.12.3) with ESMTP id g6BFONpi068356; Thu, 11 Jul 2002 18:24:23 +0300 (EEST) (envelope-from amour@bugs.elitsat.net) Received: from localhost (amour@localhost) by bugs.elitsat.net (8.12.3/8.12.3/Submit) with ESMTP id g6BFOK8f068353; Thu, 11 Jul 2002 18:24:22 +0300 (EEST) Date: Thu, 11 Jul 2002 18:24:20 +0300 (EEST) From: Alexander To: freebsd-isp@freebsd.org Cc: freebsd-net@freebsd.org Subject: QUICK-R Message-ID: <20020711182027.I68345-100000@bugs.elitsat.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I was looking for program that have lots of features about controlling my clients ppp accounts. So far I've got this QUICK-R (for those of you who don't know it, check: http://www.q-linux.com/software/quick-r/). I was wondering if there is something like this but made for BSD, or at least it is included in ports or packages. thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu Jul 11 8:42: 0 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0339737B400 for ; Thu, 11 Jul 2002 08:41:55 -0700 (PDT) Received: from mail.dep.ufscar.br (mail.dep.ufscar.br [200.136.228.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id E498B43E3B for ; Thu, 11 Jul 2002 08:41:52 -0700 (PDT) (envelope-from aledon@fugspbr.org) Received: from localhost (localhost.dep.ufscar.br [127.0.0.1]) by mail.dep.ufscar.br (Postfix) with ESMTP id 3912D66B11 for ; Thu, 11 Jul 2002 12:41:49 -0300 (BRT) Received: from fugspbr.org (delphos.dep.ufscar.br [200.136.228.127]) by mail.dep.ufscar.br (Postfix) with ESMTP id BCBBB66B10 for ; Thu, 11 Jul 2002 12:41:44 -0300 (BRT) Message-ID: <3D2DA6F1.7E1DE3C4@fugspbr.org> Date: Thu, 11 Jul 2002 12:40:33 -0300 From: Alexandre Bensi {'aledon'} X-Mailer: Mozilla 4.78 [en] (WinNT; U) X-Accept-Language: pt,en MIME-Version: 1.0 To: Lista freebsd-isp Subject: Re: IPFW References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am using this: /sbin/ipfw add 4000 count tcp from any to any 25 In this option treatment doesn't exist. -- # UPLOAD - 256Kbytes /sbin/ipfw add 4500 pipe 3 all from YOUR_CLASS.0/24 to any via xl0 /sbin/ipfw pipe 3 config bw 2048Kbit/s # DOWNLOAD - 512Kbytes /sbin/ipfw add 5500 pipe 5 all from any to YOUR_CLASS.0/24 via xl1 /sbin/ipfw pipe 5 config bw 4096Kbit/s then yes. Andy Dills wrote: > > On Wed, 10 Jul 2002, Max wrote: > > > Hi, > > > > How do I get IPFW (bandwidth limiting function) to work with logging for > > later analysis, like determining bandwidth usage per ip? > > > > For example, I put an entire ip block in a 256K queue and I want to > > check what each member of that block used... Hope the idea is > > communicated... > > > > ${fwcmd} add queue 1 ip from [MY IP BLOCK] to any > > ${fwcmd} pipe 10 config bw 256kbit/s > > ${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip 0x000000ff > > To get accounting stats with ipfw, you'd need to add two rules for each > IP, prior to the queue, such as: > ${fwcmd} add allow ip from any to [IP] count > ${fwcmd} add allow ip from [IP] to any count > > Then, the byte count corresponding with the first rule accounts for how > much ingress bandwidth is used, and the byte count for the second rule > accounts for how much egress bandwidth is used. > > Remember to check your stats daily! Store and reset daily, lest you lose > important billing data. > > Andy > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > Andy Dills 301-682-9972 > Xecunet, LLC www.xecu.net > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > Dialup * Webhosting * E-Commerce * High-Speed Access > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message -- Atenciosamente, Alexandre Bensi {'aledon'} System/Network Administrator -- Icq Uin at WORK | HOME: 118731900 | 129462580 E-Mail: echo alexandre dep ufscar br | sed 's/ /@/;s/ /./g' -- This mail send through Unix FreeBSD 4.5 STABLE - Amavis VScan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Thu Jul 11 9:10:49 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F331337B400 for ; Thu, 11 Jul 2002 09:10:46 -0700 (PDT) Received: from post.xecu.net (post.xecu.net [216.127.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B94643E3B for ; Thu, 11 Jul 2002 09:10:46 -0700 (PDT) (envelope-from andy@xecu.net) Received: from thunder.xecu.net (thunder.xecu.net [216.127.136.208]) by post.xecu.net (Postfix) with ESMTP id 03A1949A5; Thu, 11 Jul 2002 12:10:40 -0400 (EDT) Received: by thunder.xecu.net (Postfix, from userid 100) id 65DE0250FF; Thu, 11 Jul 2002 12:10:38 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by thunder.xecu.net (Postfix) with ESMTP id 5B92C250FC; Thu, 11 Jul 2002 12:10:38 -0400 (EDT) Date: Thu, 11 Jul 2002 12:10:38 -0400 (EDT) From: Andy Dills To: Max Cc: freebsd-isp@freebsd.org Subject: Re: IPFW In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 11 Jul 2002, Andy Dills wrote: > ${fwcmd} add allow ip from any to [IP] count > ${fwcmd} add allow ip from [IP] to any count Ouch, morning brain fart. Those should read: ${fwcmd} add count ip from any to [IP] ${fwcmd} add count ip from [IP] to any Andy xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Andy Dills 301-682-9972 Xecunet, LLC www.xecu.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dialup * Webhosting * E-Commerce * High-Speed Access To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 6:52:30 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83A4937B400 for ; Fri, 12 Jul 2002 06:52:27 -0700 (PDT) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 377E643E42 for ; Fri, 12 Jul 2002 06:52:24 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 3.36 #1 (FreeBSD)) id 17T0oi-000HyT-00 for ; Fri, 12 Jul 2002 16:50:40 +0300 Date: Fri, 12 Jul 2002 16:50:40 +0300 From: Odhiambo Washington To: FBSD-ISP Subject: Scripts to Manage Virtual Hosts Message-ID: <20020712135040.GM10377@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , FBSD-ISP Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Disclaimer: Any views expressed in this message,where not explicitly attributed otherwise, are mine alone!. X-Fortune: Good day for overcoming obstacles. Try a steeplechase. X-Operating-System: FreeBSD 4.5-STABLE i386 X-Best-Window-Manager: Blackbox X-Mailer: Mutt 1.4i (2002-05-29) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 4:49PM up 39 days, 7:33, 3 users, load averages: 0.58, 0.54, 0.57 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [ I sent this to -questions but got no help ;) ] Hello Users, I believe someone already had written a script that can be used to manipulate httpd.conf to add/remove virtual host entries. I sincerely believe that this is somewhere so I don't have to start agonizing about re-inventing the wheel. Could someone kindly point me to where one is located, better even share with me what they have ;-) -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) The light at the end of the tunnel is the headlight of an approaching train. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 7: 5:39 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 862A537B400 for ; Fri, 12 Jul 2002 07:05:37 -0700 (PDT) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31A2043E6A for ; Fri, 12 Jul 2002 07:05:34 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 3.36 #1 (FreeBSD)) id 17T11R-000Jqh-00 for ; Fri, 12 Jul 2002 17:03:49 +0300 Date: Fri, 12 Jul 2002 17:03:49 +0300 From: Odhiambo Washington To: FBSD-ISP Subject: WML Access... Message-ID: <20020712140349.GO10377@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , FBSD-ISP Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Disclaimer: Any views expressed in this message,where not explicitly attributed otherwise, are mine alone!. X-Fortune: Good day for overcoming obstacles. Try a steeplechase. X-Operating-System: FreeBSD 4.5-STABLE i386 X-Best-Window-Manager: Blackbox X-Mailer: Mutt 1.4i (2002-05-29) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 5:01PM up 39 days, 7:45, 3 users, load averages: 0.42, 0.67, 0.66 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am hoping that accessing e-mails from WAP-enabled phones is not via proprietary methods, but I am wondering if someone can point me to the right HOWTOs about implementing this. I have so many queries about users wanting to access their e-mails via WAP-enabled devices. How do I setup an WML interface?? Thanks guys! -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) Confession is good for the soul only in the sense that a tweed coat is good for dandruff. -- Peter de Vries To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 7:19:22 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9411737B400 for ; Fri, 12 Jul 2002 07:19:15 -0700 (PDT) Received: from skyweb.ca (smtp-2.vancouver.ipapp.com [216.152.192.208]) by mx1.FreeBSD.org (Postfix) with SMTP id 3185543E42 for ; Fri, 12 Jul 2002 07:19:15 -0700 (PDT) (envelope-from mjohnston@skyweb.ca) Received: from mjohnston ([209.5.243.50]) by smtp-2.vancouver.ipapp.com ; Fri, 12 Jul 2002 07:17:48 -0700 From: "Mark Johnston" To: "'Odhiambo Washington'" Cc: Subject: Re: Scripts to Manage Virtual Hosts Date: Fri, 12 Jul 2002 09:18:47 -0500 Organization: SkyWeb Message-ID: <001b01c229af$0a181040$3e0fa8c0@skycable.int> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <20020712135040.GM10377@ns2.wananchi.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Wash, As opposed to manipulating httpd.conf, I've used Apache's Include directive to make the vhost configuration files easier to manage. I include the NameVirtualHost directives in httpd.conf, then follow them with Include /home/www/vhosts Each file in /home/www/vhosts represents a domain and contains one block. I don't do a lot of customization to them, but this snippet builds a new one: sub addvhost { my $domain = shift; print "Setting up apache: "; if (-f "/home/www/vhosts/$domain") { print "Rewriting vhost config file... "; } else { print "Creating vhost config file... "; }; # If others can write to /home/www/vhosts/$domain, this will give you a race condition open F, ">/home/www/vhosts/$domain" or do { print "$!\n"; return; }; print F < ServerName $domain ServerAlias www.$domain ServerAdmin webmaster\@$domain DocumentRoot /home/www/$domain ErrorLog /home/www/$domain/logs/error_log CustomLog /home/www/$domain/logs/access_log combined Alias /icons/ "/home/apache/icons/" Options Indexes AllowOverride None Options Indexes AllowOverride Limit AuthConfig EOF close F; print "ok.\n"; # Another one here :) # Adjust UIDs appropriately chown 511, 511, "/home/www/vhosts/$domain" or die "$!"; print "/home/apache/bin/apachectl graceful: "; print `/home/apache/bin/apachectl graceful`; print "\n"; }; (Yes, /home/apache and /home/www make for a lousy directory layout - this is actually on a cobalt raq running Linux, but the same principles apply. ;) This is handy for a few reasons - a couple are no blocking on httpd.conf and no chance of munging it if your script runs amok. Hope this helps, Mark Johnston Network Systems Analyst, SkyWeb mjohnston@skyweb.ca (204) 925-9125 / 1-888-244-5544 -----Original Message----- From: owner-freebsd-isp@FreeBSD.ORG [mailto:owner-freebsd-isp@FreeBSD.ORG] On Behalf Of Odhiambo Washington Sent: Friday, July 12, 2002 8:51 AM To: FBSD-ISP Subject: Scripts to Manage Virtual Hosts [ I sent this to -questions but got no help ;) ] Hello Users, I believe someone already had written a script that can be used to manipulate httpd.conf to add/remove virtual host entries. I sincerely believe that this is somewhere so I don't have to start agonizing about re-inventing the wheel. Could someone kindly point me to where one is located, better even share with me what they have ;-) -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) The light at the end of the tunnel is the headlight of an approaching train. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 7:36: 8 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6694637B400 for ; Fri, 12 Jul 2002 07:36:01 -0700 (PDT) Received: from thud.tbe.net (thud.tbe.net [209.123.109.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF7C343E4A for ; Fri, 12 Jul 2002 07:36:00 -0700 (PDT) (envelope-from gary@tbe.net) Received: by thud.tbe.net (Postfix, from userid 1001) id 75EA81C94D9; Fri, 12 Jul 2002 10:34:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by thud.tbe.net (Postfix) with ESMTP id 71037DCF3E; Fri, 12 Jul 2002 10:34:00 -0400 (EDT) Date: Fri, 12 Jul 2002 10:34:00 -0400 (EDT) From: "Gary D. Margiotta" To: Mark Johnston Cc: 'Odhiambo Washington' , freebsd-isp@freebsd.org Subject: Re: Scripts to Manage Virtual Hosts In-Reply-To: <001b01c229af$0a181040$3e0fa8c0@skycable.int> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1250368736-1026484440=:45401" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1250368736-1026484440=:45401 Content-Type: TEXT/PLAIN; charset=US-ASCII I started writing some perl scripts which I use to add virtualhosts and redirects to separate config files. I didn't like the idea of editing the httpd.conf directly, so I made use of the ResourceConfig directive, and created 2 files called virtualhosts.conf and redirects.conf which apache pulls in when started. The scripts are currently only able to add entries, and not remove them, but should be able to be easily enough modified to include that, I just haven't had the time to finish them up. I want to eventually hook up the scripts to keep the info in a database for much easier organization and manipulation of domains, but again, lack of time. You'll notice that it also makes a call to a shell script that gets run to ifconfig the virtual IPs on the host interface. I also run that before I restart apache to make sure the new IP takes effect. -Gary Running Windows is kinda like playing blackjack: User stays on success, reboots on failure > -----Original Message----- > From: owner-freebsd-isp@FreeBSD.ORG > [mailto:owner-freebsd-isp@FreeBSD.ORG] On Behalf Of Odhiambo Washington > Sent: Friday, July 12, 2002 8:51 AM > To: FBSD-ISP > Subject: Scripts to Manage Virtual Hosts > > > [ I sent this to -questions but got no help ;) ] > > > Hello Users, > > I believe someone already had written a script that can be used to > manipulate > httpd.conf to add/remove virtual host entries. > I sincerely believe that this is somewhere so I don't have to start > agonizing > about re-inventing the wheel. > Could someone kindly point me to where one is located, better even share > with me > what they have ;-) > > > -Wash > > -- > Odhiambo Washington "The box said 'Requires > Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' > Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." > GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) > > > The light at the end of the tunnel is the headlight of an approaching > train. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > --0-1250368736-1026484440=:45401 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="vhost.pl" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="vhost.pl" IyEvdXNyL2xvY2FsL2Jpbi9wZXJsDQoNCnVzZSBzdHJpY3Q7DQp1c2Ugd2Fy bmluZ3M7DQp1c2UgQ0dJIHF3KDpzdGFuZGFyZCk7DQoNCm15ICRkb21haW47 DQpteSAkZG9tYWluX2lwOw0KbXkgJHNlcnZlcm5hbWU7DQpteSAkc2VydmVy YWRtaW47DQpteSAkZG9jdW1lbnRyb290Ow0KbXkgJGRvbWFpbnR5cGU9InZp cnR1YWxob3N0IjsNCg0KJGRvbWFpbj1wYXJhbSgiZG9tYWluIik7DQp1bmxl c3MgKCRkb21haW4pew0KICBwcmludCAiUGxlYXNlIGVudGVyIHRoZSBkb21h aW4gbmFtZSB5b3Ugd2FudCB0byBhZGQ6XG4iOw0KICAkZG9tYWluPTxTVERJ Tj47DQogIGNob21wICRkb21haW47DQp9DQoNCiRkb21haW5faXA9cGFyYW0o ImlwIik7DQp1bmxlc3MgKCRkb21haW5faXApew0KICBwcmludCAiUGxlYXNl IGVudGVyIHRoZSBJUCBmb3IgdGhpcyBkb21haW46XG4iOw0KICAkZG9tYWlu X2lwPTxTVERJTj47DQogIGNob21wICRkb21haW5faXA7DQp9DQoNCiRzZXJ2 ZXJhZG1pbj1wYXJhbSgiYWRtaW4iKTsNCnVubGVzcyAoJHNlcnZlcmFkbWlu KXsNCiAgcHJpbnQgIlBsZWFzZSBlbnRlciB0aGUgZS1tYWlsIGFkZHJlc3Mg b2YgdGhlIGFkbWluIGZvciB0aGlzIGRvbWFpbjpcbiI7DQogICRzZXJ2ZXJh ZG1pbj08U1RESU4+Ow0KICBjaG9tcCAkc2VydmVyYWRtaW47DQp9DQoNCiRz ZXJ2ZXJuYW1lPSJ3d3cuJGRvbWFpbiI7DQokZG9jdW1lbnRyb290PSIvd2Vi LyRzZXJ2ZXJuYW1lIjsNCg0Kb3BlbiAoVkhPU1QsICI+Pi91c3IvbG9jYWwv YXBhY2hlL2NvbmYvZXh0cmFzL3ZpcnR1YWxob3N0cy5jb25mIikgb3IgZGll ICJDb3VsZG4ndCBvcGVuIGZpbGU6ICQhIjsNCg0KcHJpbnQgVkhPU1QgPDwi ZW50cnkiOw0KDQojIyMgJGRvbWFpbiAjIyMNCg0KPFZpcnR1YWxIb3N0ICRk b21haW5faXA6ODA+DQogIFNlcnZlckFkbWluICRzZXJ2ZXJhZG1pbg0KICBE b2N1bWVudFJvb3QgJGRvY3VtZW50cm9vdA0KICBTZXJ2ZXJOYW1lICRzZXJ2 ZXJuYW1lDQogIEVycm9yTG9nIC93ZWIvbG9nLyRzZXJ2ZXJuYW1lLWVycm9y LmxvZw0KICBDdXN0b21Mb2cgL3dlYi9sb2cvJHNlcnZlcm5hbWUtYWNjZXNz LmxvZyBjb21tb24NCjwvVmlydHVhbEhvc3Q+DQoNCmVudHJ5DQoNCmNsb3Nl IChWSE9TVCkgb3IgZGllICJDb3VsZG4ndCBjbG9zZSBmaWxlOiAkISI7DQoN Cm1rZGlyICRkb2N1bWVudHJvb3Q7DQoNCm9wZW4gKE5FVENPTkZJRywgIj4+ L3Vzci9sb2NhbC9iaW4vbmV0Y29uZmlnLnNoIikgb3IgZGllICJDb3VsZG4n dCBvcGVuIGZpbGU6ICQhIjsNCg0KcHJpbnQgTkVUQ09ORklHIDw8ImFkZHJl c3NlcyI7DQoNCmlmY29uZmlnIGZ4cDAgJGRvbWFpbl9pcCBhbGlhcyBuZXRt YXNrIDI1NS4yNTUuMjU1LjI1NQ0KZWNobyAtbiAnICRzZXJ2ZXJuYW1lJw0K DQphZGRyZXNzZXMNCg0KY2xvc2UgKE5FVENPTkZJRykgb3IgZGllICJDb3Vs ZG4ndCBjbG9zZSBmaWxlOiAkISI7DQoNCm9wZW4gKERPTUFJTkxJU1QsICI+ Pi91c3IvbG9jYWwvYXBhY2hlL2h0ZG9jcy9hZG1pbi9kb21haW5fbGlzdCIp IG9yIGRpZSAiQ291bGRuJ3Qgb3BlbiBmaWxlOiANCiQhIjsNCg0KcHJpbnQg RE9NQUlOTElTVCAiJGRvbWFpbl9pcCwkc2VydmVybmFtZSwkZG9tYWludHlw ZVxuIjsNCg0KY2xvc2UgKERPTUFJTkxJU1QpIG9yIGRpZSAiQ291bGRuJ3Qg Y2xvc2UgZmlsZTogJCEiOw0KDQoNCnByaW50IGhlYWRlcigpOw0KcHJpbnQg IiRzZXJ2ZXJuYW1lIGVudGVyZWQgd2l0aCBhbiBJUCBvZiAkZG9tYWluX2lw XG4iOw0K --0-1250368736-1026484440=:45401 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="redirect.pl" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="redirect.pl" IyEvdXNyL2xvY2FsL2Jpbi9wZXJsDQoNCnVzZSBzdHJpY3Q7DQp1c2Ugd2Fy bmluZ3M7DQp1c2UgQ0dJIHF3KDpzdGFuZGFyZCk7DQoNCm15ICRkb21haW5f aXA7DQpteSAkbmV3X3BhdGg7DQpteSAkc2VydmVybmFtZTsNCm15ICRkb21h aW50eXBlPSJyZWRpcmVjdG9yIjsNCg0KJGRvbWFpbl9pcD1wYXJhbSgiZG9t YWluX2lwIik7DQp1bmxlc3MgKCRkb21haW5faXApew0KICBwcmludCAiUGxl YXNlIGVudGVyIHRoZSBJUCBmb3IgdGhlIHJlZGlyZWN0b3I6XG4iOw0KICAk ZG9tYWluX2lwPTxTVERJTj47DQogIGNob21wICRkb21haW5faXA7DQp9DQoN CiRzZXJ2ZXJuYW1lPXBhcmFtKCJzZXJ2ZXJuYW1lIik7DQp1bmxlc3MgKCRz ZXJ2ZXJuYW1lKXsNCiAgcHJpbnQgIlBsZWFzZSBlbnRlciB0aGUgc2VydmVy bmFtZSB0byByZWRpcmVjdDpcbiI7DQogICRzZXJ2ZXJuYW1lPTxTVERJTj47 DQogIGNob21wICRzZXJ2ZXJuYW1lOw0KfQ0KDQokbmV3X3BhdGg9cGFyYW0o Im5ld19wYXRoIik7DQp1bmxlc3MgKCRuZXdfcGF0aCl7DQogIHByaW50ICJQ bGVhc2UgZW50ZXIgdGhlIGRlc3RpbmF0aW9uIHBhdGg6XG4iOw0KICAkbmV3 X3BhdGg9PFNURElOPjsNCiAgY2hvbXAgJG5ld19wYXRoOw0KfQ0KDQpvcGVu IChSRURJUkVDVCwgIj4+L3Vzci9sb2NhbC9hcGFjaGUvY29uZi9leHRyYXMv cmVkaXJlY3RzLmNvbmYiKSBvciBkaWUgIkNvdWxkbid0IG9wZW4gZmlsZTog JCEiOw0KDQpwcmludCBSRURJUkVDVCA8PCJzdHVmZiI7DQoNCjxWaXJ0dWFs SG9zdCAkZG9tYWluX2lwOjgwPg0KICAgIFNlcnZlck5hbWUgJHNlcnZlcm5h bWUNCiAgICBSZURpcmVjdCAvIGh0dHA6Ly8kbmV3X3BhdGgNCjwvVmlydHVh bEhvc3Q+DQoNCnN0dWZmDQoNCmNsb3NlIChSRURJUkVDVCkgb3IgZGllICJD b3VsZG4ndCBjbG9zZSBmaWxlOiAkISI7DQoNCm9wZW4gKE5FVENPTkZJRywg Ij4+L3Vzci9sb2NhbC9iaW4vbmV0Y29uZmlnLnNoIikgb3IgZGllICJDb3Vs ZG4ndCBvcGVuIGZpbGU6ICQhIjsNCg0KcHJpbnQgTkVUQ09ORklHIDw8ImFk ZHJlc3NlcyI7DQoNCmlmY29uZmlnIGZ4cDAgJGRvbWFpbl9pcCBhbGlhcyBu ZXRtYXNrIDI1NS4yNTUuMjU1LjI1NQ0KZWNobyAtbiAnICRzZXJ2ZXJuYW1l Jw0KICANCmFkZHJlc3Nlcw0KICANCmNsb3NlIChORVRDT05GSUcpIG9yIGRp ZSAiQ291bGRuJ3QgY2xvc2UgZmlsZTogJCEiOw0KDQpvcGVuIChET01BSU5M SVNULCAiPj4vdXNyL2xvY2FsL2FwYWNoZS9odGRvY3MvYWRtaW4vZG9tYWlu X2xpc3QiKSBvciBkaWUgIkNvdWxkbid0IG9wZW4gZmlsZTogDQokISI7DQoN CnByaW50IERPTUFJTkxJU1QgIiRkb21haW5faXAsJHNlcnZlcm5hbWUsJGRv bWFpbnR5cGVcbiI7DQoNCmNsb3NlIChET01BSU5MSVNUKSBvciBkaWUgIkNv dWxkbid0IGNsb3NlIGZpbGU6ICQhIjsNCg0KcHJpbnQgaGVhZGVyKCk7DQpw cmludCAiJHNlcnZlcm5hbWUgd2FzIHJlZGlyZWN0ZWQgdG8gJG5ld19wYXRo IjsNCg== --0-1250368736-1026484440=:45401-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 15:52: 1 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24D5737B40B for ; Fri, 12 Jul 2002 15:51:56 -0700 (PDT) Received: from gate21.fw.porsche.de (gate23.fw.porsche.de [193.174.9.99]) by mx1.FreeBSD.org (Postfix) with SMTP id DF2D343E42 for ; Fri, 12 Jul 2002 15:51:53 -0700 (PDT) (envelope-from perisa@porsche.de) Received: (qmail 8110 invoked from network); 12 Jul 2002 21:54:35 -0000 Received: from unknown (HELO wuxin011.ibd.porsche.de) (141.36.65.1) by 193.197.149.150 with SMTP; 12 Jul 2002 21:54:35 -0000 Received: (qmail 24139 invoked from network); 12 Jul 2002 21:49:49 -0000 Received: from wuxws007.ibd.porsche.de (HELO porsche.de) (141.36.2.178) by smtp4cli.ibd.porsche.de with SMTP; 12 Jul 2002 21:49:49 -0000 Message-ID: <3D2F4F75.1090902@porsche.de> Date: Fri, 12 Jul 2002 23:51:49 +0200 From: Marc Perisa User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523 X-Accept-Language: en, de-de, es-es MIME-Version: 1.0 To: "Gary D. Margiotta" Cc: Mark Johnston , 'Odhiambo Washington' , freebsd-isp@freebsd.org Subject: Re: Scripts to Manage Virtual Hosts References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gary D. Margiotta wrote: > I started writing some perl scripts which I use to add virtualhosts and > redirects to separate config files. I didn't like the idea of editing the > httpd.conf directly, so I made use of the ResourceConfig directive, and > created 2 files called virtualhosts.conf and redirects.conf which apache > pulls in when started. > > The scripts are currently only able to add entries, and not remove them, > but should be able to be easily enough modified to include that, I just > haven't had the time to finish them up. I want to eventually hook up the > scripts to keep the info in a database for much easier organization and > manipulation of domains, but again, lack of time. > > You'll notice that it also makes a call to a shell script that gets run to > ifconfig the virtual IPs on the host interface. I also run that before I > restart apache to make sure the new IP takes effect. > > -Gary > Does anyone know about a project to manage the Apache, postfix, qmail, shell-users for login and configuration from a LDAP-database? A friend of mine and me are trying to write a tool like that. Has anyone interest? Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 16:19: 1 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EF2037B401 for ; Fri, 12 Jul 2002 16:18:57 -0700 (PDT) Received: from mammoth.nwonline.net (mammoth.nwonline.net [208.231.144.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D76A43E42 for ; Fri, 12 Jul 2002 16:18:55 -0700 (PDT) (envelope-from aaron@weiker.org) Received: from aaronwork (unverified [63.127.63.150]) by mammoth.nwonline.net (Vircom SMTPRS 1.4.231) with ESMTP id ; Fri, 12 Jul 2002 19:18:50 -0400 From: "Aaron Weiker" To: "'Marc Perisa'" , "'Gary D. Margiotta'" Cc: "'Mark Johnston'" , "'Odhiambo Washington'" , Subject: RE: Scripts to Manage Virtual Hosts Date: Fri, 12 Jul 2002 19:23:46 -0400 Message-ID: <9828C05382E8E545BD03475752F7F094184C@server.home.weiker.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <3D2F4F75.1090902@porsche.de> Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Check out ispman http://www.ispman.org/ Aaron Weiker > -----Original Message----- > From: owner-freebsd-isp@FreeBSD.ORG > [mailto:owner-freebsd-isp@FreeBSD.ORG] On Behalf Of Marc Perisa > Sent: Friday, July 12, 2002 5:52 PM > To: Gary D. Margiotta > Cc: Mark Johnston; 'Odhiambo Washington'; freebsd-isp@freebsd.org > Subject: Re: Scripts to Manage Virtual Hosts > > > Gary D. Margiotta wrote: > > I started writing some perl scripts which I use to add virtualhosts > > and redirects to separate config files. I didn't like the idea of > > editing the httpd.conf directly, so I made use of the > ResourceConfig > > directive, and created 2 files called virtualhosts.conf and > > redirects.conf which apache pulls in when started. > > > > The scripts are currently only able to add entries, and not remove > > them, but should be able to be easily enough modified to > include that, > > I just haven't had the time to finish them up. I want to > eventually > > hook up the scripts to keep the info in a database for much easier > > organization and manipulation of domains, but again, lack of time. > > > > You'll notice that it also makes a call to a shell script that gets > > run to ifconfig the virtual IPs on the host interface. I also run > > that before I restart apache to make sure the new IP takes effect. > > > > -Gary > > > > Does anyone know about a project to manage the Apache, > postfix, qmail, > shell-users for login and configuration from a LDAP-database? > > A friend of mine and me are trying to write a tool like that. > Has anyone > interest? > > Marc > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Fri Jul 12 23:10:55 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C929A37B400 for ; Fri, 12 Jul 2002 23:10:49 -0700 (PDT) Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE14443E5E for ; Fri, 12 Jul 2002 23:10:48 -0700 (PDT) (envelope-from palm@simoncarr.com) Received: from localhost ([64.229.102.54]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020713061027.BRNR8251.tomts6-srv.bellnexxia.net@localhost>; Sat, 13 Jul 2002 02:10:27 -0400 Date: Sat, 13 Jul 2002 00:33:52 -0400 Subject: Re: Scripts to Manage Virtual Hosts Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) Cc: Mark Johnston , 'Odhiambo Washington' , freebsd-isp@freebsd.org To: "Gary D. Margiotta" From: Simon Carr's Palm 3 HandHeld In-Reply-To: Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.482) Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Gary, Some thoughts; I've done something similar, but instead of writing all the VirtualHosts to one file it just creates a file for each VirtualHost called .conf in a specified directory, then in my httpd.conf I've got include "/usr/local/etc/apache/VirtualHost/" That'll read all the files in said directory and process them (you can see it with an apachectl configtest, it lists each one). An absolute godsend of a feature. I also toyed with the idea of using mod_sqlinclude, but the idea of my DB server going down for the count and then trying to restart an Apache server with 100+ VirtualHosts did not sit well... :) So the process is I've got the user configs in a database, but the VirtualHost files themselves are static text that reside in a directory. The perl script reads from the DB and creates any new entries, but if the DB server isn't there my Apache isn't crippled (totally). I haven't decided on a good method for disabling accounts but I'm getting there. I haven't dealt with binding VirtualHosts to specific IPs, I just have ... I'll eventually have to add :80 to the end of that when I've got SSL enabled on my servers. On Friday, July 12, 2002, at 10:34 , Gary D. Margiotta wrote: > I started writing some perl scripts which I use to add virtualhosts and > redirects to separate config files. I didn't like the idea of editing > the > httpd.conf directly, so I made use of the ResourceConfig directive, and > created 2 files called virtualhosts.conf and redirects.conf which apache > pulls in when started. > > The scripts are currently only able to add entries, and not remove them, > but should be able to be easily enough modified to include that, I just > haven't had the time to finish them up. I want to eventually hook up > the > scripts to keep the info in a database for much easier organization and > manipulation of domains, but again, lack of time. > > You'll notice that it also makes a call to a shell script that gets run > to > ifconfig the virtual IPs on the host interface. I also run that > before I > restart apache to make sure the new IP takes effect. > > -Gary > > Running Windows is kinda like playing blackjack: > User stays on success, reboots on failure > > >> -----Original Message----- >> From: owner-freebsd-isp@FreeBSD.ORG >> [mailto:owner-freebsd-isp@FreeBSD.ORG] On Behalf Of Odhiambo Washington >> Sent: Friday, July 12, 2002 8:51 AM >> To: FBSD-ISP >> Subject: Scripts to Manage Virtual Hosts >> >> >> [ I sent this to -questions but got no help ;) ] >> >> >> Hello Users, >> >> I believe someone already had written a script that can be used to >> manipulate >> httpd.conf to add/remove virtual host entries. >> I sincerely believe that this is somewhere so I don't have to start >> agonizing >> about re-inventing the wheel. >> Could someone kindly point me to where one is located, better even >> share >> with me >> what they have ;-) >> >> >> -Wash >> >> -- >> Odhiambo Washington "The box said 'Requires >> Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' >> Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." >> GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) >> >> >> The light at the end of the tunnel is the headlight of an approaching >> train. >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-isp" in the body of the message >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-isp" in the body of the message >> > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message From owner-freebsd-isp Sat Jul 13 16:41: 4 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 857EF37B400 for ; Sat, 13 Jul 2002 16:41:02 -0700 (PDT) Received: from IMGate.FullScaleCommerce.com (imgate.fullscalecommerce.com [208.253.55.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42A2F43E6D for ; Sat, 13 Jul 2002 16:41:02 -0700 (PDT) (envelope-from mark@hereiam.net) Received: from server3.i-netco.com (server3.I-netco.com [208.253.55.67]) by IMGate.FullScaleCommerce.com (Postfix Relay Hub) with ESMTP id A8E6351613 for ; Sat, 13 Jul 2002 19:40:08 -0400 (EDT) X-Server-Authority: http://s62.net/?99e88ad4c5f807c8&o Message-Id: <20020713234008.A8E6351613@IMGate.FullScaleCommerce.com> Date: Sat, 13 Jul 2002 19:40:08 -0400 (EDT) From: mark@hereiam.net To: undisclosed-recipients: ; Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message