Re: relayd as websocket proxy?
Hello, I am facing issues with running Jupyter notebook behind relayd. This is most probably because of websockets proxy. When I open a notebook, its not able to connect to the kernel. Searching on the net pointed me to this issue - https://github.com/jupyter/notebook/issues/2664 The solution there is with an nginx configuration. I am not able to figure out equivalent relayd config. Any help here would be appreciated. Here is my relayd config - - - relayd_addr="0.0.0.0" relayd_port="80" jupyter_port="5000" table { 127.0.0.1 } httpd_port="8000" table { 127.0.0.1 } log all http protocol "httpfilter" { match header append "X-Forwarded-For" \ value "$REMOTE_ADDR" match header append "X-Forwarded-By" \ value "$REMOTE_ADDR:$SERVER_PORT" match header set "Keep-Alive" value "$TIMEOUT" ### TCP performance options tcp { nodelay, sack, socket buffer 65536, backlog 100 } ### Return HTTP/HTML error pages return error match request path "/ipython/*" forward to match request path "/" forward to } relay http { listen on $relayd_addr port $relayd_port protocol "httpfilter" forward to port $jupyter_port mode loadbalance forward to port $httpd_port check tcp interval 60 } - - Regards. -- Ajitabh Pandey On Mon, Apr 30, 2018 at 9:24 PM, Andre Ruppert <a...@in-telegence.net> wrote: > Hello @misc, > > is it possible to configure relayd to act as a websocket proxy with > v6.2/v6.3? > > I set up relayd as ssl accelerator: > > excerpt from relayd.conf: > > > http protocol "httpfilter2" { > > tcp { nodelay, sack, socket buffer 65536, backlog 100 } > > return error > match request header set "Connection" value "close" > match header set "Keep-Alive" value "$TIMEOUT" > match request header append "X-Forwarded-For" value "$REMOTE_ADDR" > match request header append "X-Forwarded-By" value \ > "$SERVER_ADDR:$SERVER_PORT" > > tls { tlsv1, ciphers "HIGH:!ADH:!NULL:!RC4:-ECDH:ECDHE" } > } > ... > > relay webrtc_wsc { > listen on $webrtc_wsc_relayd_addr \ > port $webrtc_wsc_relayd_port tls > protocol "httpfilter2" > transparent forward to port $webrtc_wsc_web_port \ > mode loadbalance http “/” code 200 > } > ... > > valid .key and .crt-files are placed in /etc/ssl/private and /etc/ssl. > > > First: "standard" SSL acceleration works fine without problems. > > Second: websocket connections don't :-( > > As far I can see websocket upgrade messages (decoded in wireshark as > "HTTP/1.1 101 Switching Protocols" packets) from the internal server are > replaced by relayd with packets with the RST-flag set directed to the WAN > client and the connection is closed. > > > My head-scratching question: > is this possible at all with relayd? > > Or do I have to switch to nginx? > > > Regards > Andre Ruppert > > > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: Flask app as UWSGI returning 500 when accessed through OpenBSD HTTPD
On Wed, Oct 18, 2017 at 7:25 PM, Ajitabh Pandey <ajitabhpan...@gmail.com> wrote: > > On Wed, Oct 18, 2017 at 7:14 PM, Jiri B <ji...@devio.us> wrote: > >> On Wed, Oct 18, 2017 at 06:55:32PM +0530, Ajitabh Pandey wrote: >> > On Wed, Oct 18, 2017 at 1:43 PM, Jiri B <ji...@devio.us> wrote: >> > >> > > On Wed, Oct 18, 2017 at 01:40:06PM +0530, Ajitabh Pandey wrote: >> >> See? > > > Yes, I see that. Thank you very much. I will try and figure out on how do > I make uwsgi create socket with specific ownership and permissions. I would > hate to chroot the uwsgi because that would mean to copy python libraries > in /var/www :-) > > Thanks again for inputs here. > I am now able to create the socket with correct permission / ownership. Here is the uwsgi ini file - [uwsgi] module = wsgi # process related settings master = 1 processes = 4 threads = 2 socket = /var/www/run/hello.sock # approprite ownership and permissions on socket chmod-socket = 660 chown-socket = www:www # clear environment on exit vaccume = true wsgi-file = myproject.py and I am running it as - $ doas uwsgi --ini hellopy.ini --callable app and this is the permissions now - $ ls -l /var/www/run total 0 srw-rw 1 www www 0 Oct 18 19:47 hello.sock= Now when I access http://192.168.1.111/hello/ request just times out (return code 408) access.log just shows - default x.y.a.b - - [18/Oct/2017:19:48:41 +0530]" " 408 0 There is nothing in error.log Any idea what am I doing wrong. Regards. -- Ajitabh Pandey http://ajitabhpandey.info/
Re: Flask app as UWSGI returning 500 when accessed through OpenBSD HTTPD
On Wed, Oct 18, 2017 at 7:14 PM, Jiri B <ji...@devio.us> wrote: > On Wed, Oct 18, 2017 at 06:55:32PM +0530, Ajitabh Pandey wrote: > > On Wed, Oct 18, 2017 at 1:43 PM, Jiri B <ji...@devio.us> wrote: > > > > > On Wed, Oct 18, 2017 at 01:40:06PM +0530, Ajitabh Pandey wrote: > > > > > > Can httpd access the socket? What are permissions? > > > > Here are the perms - > > > > srwxr-xr-x 1 root daemon 0 Oct 18 13:35 hello.sock > > And voila, they are wrong. How would httpd daemon be able > to write there? > > See what slowcgi, a fastcgi->cgi daemon says about socket: > > slowcgi opens a socket at /var/www/run/slowcgi.sock, owned by www:www, > with permissions 0660. It will then chroot(8) to /var/www and drop > privileges to user "www". > > See? > Yes, I see that. Thank you very much. I will try and figure out on how do I make uwsgi create socket with specific ownership and permissions. I would hate to chroot the uwsgi because that would mean to copy python libraries in /var/www :-) Thanks again for inputs here. -- Ajitabh Pandey http://ajitabhpandey.info/
Re: Flask app as UWSGI returning 500 when accessed through OpenBSD HTTPD
On Wed, Oct 18, 2017 at 1:43 PM, Jiri B <ji...@devio.us> wrote: > On Wed, Oct 18, 2017 at 01:40:06PM +0530, Ajitabh Pandey wrote: > > Can httpd access the socket? What are permissions? > > j. > Here are the perms - srwxr-xr-x 1 root daemon 0 Oct 18 13:35 hello.sock -- Ajitabh Pandey http://ajitabhpandey.info/
Re: Flask app as UWSGI returning 500 when accessed through OpenBSD HTTPD
On Wed, 18 Oct 2017 at 4:45 PM, Gregory Edigarovwrote: > > > > I get 500 > > > hi, what's in your error.log? Nothing is in the error log. The access log indicates one line with 500 in it.
Re: Flask app as UWSGI returning 500 when accessed through OpenBSD HTTPD
Thanks for the quick response. I tried that, still getting 500 the same problem - $ doas uwsgi --socket /var/www/run/hello.sock --wsgi-file myproject.py --master --callable app In /etc/httpd.conf - location "/hello/*" { fastcgi socket "/run/hello.sock" } Regards. -- Ajitabh Pandey On Wed, Oct 18, 2017 at 1:22 PM, Kim Zeitler <kim.zeit...@konzept-is.de> wrote: > Hi > > you have a slight error, fastcgi wants a socket not a port. > > On 10/18/17 09:36, Ajitabh Pandey wrote: > >> Hi, >> >> I am trying to setup a sample flask application proxy through OpenBSD >> httpd. Here is the config - >> >> -- >> ext_ip="192.168.1.111" >> >> prefork 2 >> >> server "default" { >>listen on $ext_ip port 80 >>root "/htdocs" >> >>location "/hello/*" { >> fastcgi socket ":" >>} >> > > from httpd.conf(5) > ... > Enable FastCGI instead of serving files. The socket is a local > path name within the chroot(2) root directory of httpd(8) and > defaults to /run/slowcgi.sock. > ... > > Try running uwsgi with a socket in /var/www/run instead of an tcp port > > > -- > Kim Zeitler > Bachelor of Science (Hons) > > Konzept Informationssysteme GmbH > Am Weiher 13 • 88709 Meersburg > > Fon: +49 7532 4466-240 > Fax: +49 7532 4466-66 > kim.zeit...@konzept-is.de > www.konzept-is.de > > Amtsgericht Freiburg 581491 • Geschäftsführer: Dr. Peer Griebel, > Frank Häßler, Dr. Christophe Schoenenberger > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Flask app as UWSGI returning 500 when accessed through OpenBSD HTTPD
Hi, I am trying to setup a sample flask application proxy through OpenBSD httpd. Here is the config - -- ext_ip="192.168.1.111" prefork 2 server "default" { listen on $ext_ip port 80 root "/htdocs" location "/hello/*" { fastcgi socket ":" } } types { text/csscss text/html html htm text/plain txt image/gif gif image/jpeg jpeg jpg image/png png application/javascript js application/xml xml } -- The flask app is -- from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello There!" if __name__ == "__main__": app.run(host='127.0.0.1') I am running UWSGI as - -- $ uwsgi --http : --wsgi-file myproject.py --master --callable app $ curl http://127.0.0.1:/ returns the contents, but when I access the page as http://192.168.1.111/hello/ I get 500. Any pointers will be helpful. Regards. -- Ajitabh Pandey http://ajitabhpandey.info/
Re: DMCA Free OpenBSD VPS Hosting, multiple payment methods
Try Hetzner CX series of servers in Germany. They are not actually friendly, but have ISO mount so that you can install. Other one is https://www.1984.is in Iceland. I am planning to try one from them in near future. Regards. — Ajitabh Pandey http://ajitabhpandey.info On Mon, 16 Oct 2017 at 6:50 AM, x9p <m...@x9p.org> wrote: > Hi, > > Anyone know a good non-DMCA-compliant (outside US) VPS hosting, > OpenBSD-firendly? Traffic is mostly torrent-related. > > Good bandwidth and Bitcoin payments also a plus. > > Most offshore VPS providers offers default ubuntu-debian or centos iso > images, some even FreeBSD iso, but OpenBSD is being a bit hard to find. In > the past i saw some provider offering to mount your own custom iso via a > webpanel, but this contact I have no more. > > If have any tips, will be welcomed. > > cheers. > > x9p > >
Re: What does it mean this error when I try install a package?
Stuart, On Thu, May 11, 2017 at 9:36 PM, Stuart Henderson <s...@spacehopper.org> wrote: > On 2017-05-11, Ajitabh Pandey <ajitabhpan...@gmail.com> wrote: > > I got a similar message when I try to install python, but upong > > investigating I realise that python was already installed - perhaps as a > > pre-requisite for glib2. I am not using PKG_PATH, rather I use > > /etc/installurl for specifying a list of my mirrors (man installurl(5) > for > > details) > > /etc/installurl is for specifying a *single* mirror, not a list. As the > manual says, "The /etc/installurl file contains a single line specifying > an OpenBSD mirror..." > Thanks for pointing that out. Although I am not sure if having multiple mirrors in that file will cause an issue or the utilities using the installurl will ignore all lines but the first one. I have now commented all the other mirrors in my /etc/installurl file. > > > $ doas pkg_add python-2.7.13p0 > > quirks-2.304 signed on 2017-04-02T15:01:33Z > > https://ftp.openbsd.org/pub/OpenBSD/6.1/packages-stable/ > amd64/python-2.7.13p0.tgz: > > ftp: Error retrieving file: 404 Not Found > > signify: gzheader truncated > > Error text could be improved, but this error is occurring because you > have specified a full package name including version, and that doesn't > exist (in 6.1, it's 2.7.13p1). > Interesting, so when I do the following on my box, I do not see the 2.7.13p1 there. See below - $ pkg_info -Q python |grep "^python-2.*" python-2.7.13p0 (installed) > I suggest either "pkg_add python%2.7" as shown in the pkg_add(1) manual, > or just "pkg_add python" and choose from the list. > Yep, I did that exactly. When I was choosing from the list then I was just getting the prompt back. While when specifying the full package name was throwing the error I mentioned. I guess its a matter of error message and the fact that the packages-stable directory does not yet exists in the mirrors. $ doas pkg_add python quirks-2.304 signed on 2017-04-02T15:01:33Z Ambiguous: choose package for python a 0: 1: python-2.7.13p0 2: python-3.4.5p2 3: python-3.5.2p2 4: python-3.6.0p0 Your choice: 1 $ doas pkg_add python-2.7.13p0 quirks-2.304 signed on 2017-04-02T15:01:33Z https://ftp.openbsd.org/pub/OpenBSD/6.1/packages-stable/amd64/python-2.7.13p0.tgz: ftp: Error retrieving file: 404 Not Found signify: gzheader truncated $ > > For a very long time I was trying to understand why pkg_add is looking > for > > package in packages-stable directory when this directory does not exists > on > > any of the mirrors. I checked the standard directory paths for mirror on > > OpenBSD website and this directory was not there also. > > > > Can someone help me understand why it is so, or point to some relevant > > document. > > /packages-stable *might* be used sometime in the future. > Thanks, it seems so. > > > Also, I had to run the following commands as recommended by pkg_info > python > > > > $ doas ln -sf /usr/local/bin/python2.7 /usr/local/bin/python > > $ doas ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 > > $ doas ln -sf /usr/local/bin/python2.7-config > /usr/local/bin/python-config > > $ doas ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc > > > > Do we have any alternatives management system in OpenBSD like we have in > > linux or this has to be done by hand. > > You don't have to do this, nothing in packages expects this, they look for > the full name including version. It's only needed if you have programs > from another source that expect to have the symlinks. > Python is working fine now. I understand that symlinks are mere convinience. Regards. ~ajitabhpandey
Re: What does it mean this error when I try install a package?
Hi Ron, Apologies for delayed response. Here are the contents for /etc/installurl file. I have commented out all entries but one. $ cat /etc/installurl # OpenBSD mirror https://ftp.openbsd.org/pub/OpenBSD ## Germany Mirrors # Esslinge #https://mirror.hs-esslingen.de/pub/OpenBSD # Berlin #https://ftp.spline.de/pub/OpenBSD # Frankfurt #https://ftp.hostserver.de/pub/OpenBSD Regards. ~ajitabhpandey On Thu, May 11, 2017 at 8:18 PM, Ron Georgia <ronve...@gmail.com> wrote: > Ajitabh, > Could you copy and paste the /etc/installurl here? I can try to do the > same thing on my PC to see if I get the same error. > Normally I simply pkg_add python, then pick the version I want to install, > as was already suggested. I run python 2.7 and 3.6 on all my machines. I > typically do not follow the suggestion from the pkg_info exactly. I usually > create a /usr/local/bin/python2 and python3 to cover my pythonic cravings. > Actually, the best way to develop using python is to use their virtual > environment. My experience is that OpenBSD has provided an excellent > platform for your python development experience. > I know I did not explain ‘why’ you could not install python-2.7.13p0.tgz, > but hopefully you have enough to install and start coding. Love python. > > > On May 11, 2017, at 4:46 AM, Ajitabh Pandey <ajitabhpan...@gmail.com> > wrote: > > > > Hi, > > > > I got a similar message when I try to install python, but upong > > investigating I realise that python was already installed - perhaps as a > > pre-requisite for glib2. I am not using PKG_PATH, rather I use > > /etc/installurl for specifying a list of my mirrors (man installurl(5) > for > > details) > > > > $ doas pkg_add python-2.7.13p0 > > quirks-2.304 signed on 2017-04-02T15:01:33Z > > https://ftp.openbsd.org/pub/OpenBSD/6.1/packages-stable/ > amd64/python-2.7.13p0.tgz: > > ftp: Error retrieving file: 404 Not Found > > signify: gzheader truncated > > > > For a very long time I was trying to understand why pkg_add is looking > for > > package in packages-stable directory when this directory does not exists > on > > any of the mirrors. I checked the standard directory paths for mirror on > > OpenBSD website and this directory was not there also. > > > > Can someone help me understand why it is so, or point to some relevant > > document. > > > > Also, I had to run the following commands as recommended by pkg_info > python > > > > $ doas ln -sf /usr/local/bin/python2.7 /usr/local/bin/python > > $ doas ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 > > $ doas ln -sf /usr/local/bin/python2.7-config > /usr/local/bin/python-config > > $ doas ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc > > > > Do we have any alternatives management system in OpenBSD like we have in > > linux or this has to be done by hand. > > > > Regards. > > -- > > ~ajitabhpandey > > > > On Mon, Apr 17, 2017 at 5:57 PM, Jiri B <ji...@devio.us> wrote: > > > >> On Mon, Apr 17, 2017 at 09:37:56PM +1000, Steven McDonald wrote: > >>> On Mon, 17 Apr 2017 11:02:37 + > >>> "C. L. Martinez" <carlopm...@gmail.com> wrote: > >>> > >>>> pkg_add -v python-2.7 > >>> > >>> There is no package called python-2.7. The package you want is called > >>> python-2.7.13p0. You have a few options: > >>> > >>> 1. pkg_add python, then select the version you want. > >>> 2. pkg_add python-2.7.13p0 > >>> 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1)) > >> > >> ^ or use 'python%2.7' > >> > >> j. > >> > >> > > > > > > -- > > Ajitabh Pandey > > http://ajitabhpandey.info/ | http://unixclinic.net/ | > > http://buddingthoughts.info > > ICQ - 150615062 > > Registered Linux User - 240748 > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: smtpd aliases file issue
Thanks Giles. Regards. -- ~ajitabhpandey On Thu, May 11, 2017 at 12:59 PM, Gilles Chehade <gil...@poolp.org> wrote: > Much better :-) > > You don’t need to restart the daemon, you simply need to tell it through > smtpctl that the table aliases needs to be reloaded: > > $ doas smtpctl update table aliases > > Gilles > > > > On 11 May 2017, at 08:17, Ajitabh Pandey <ajitabhpan...@gmail.com> > wrote: > > > > Hi Gilles, > > > > I did not change anything from the default. But I realise all may not be > > using default file like me and may not know what is in it. Here is a copy > > of the contents just for reference. The problem is solved by restarting > the > > smtpd as sugested by Edgar. > > > > $ doas cat /etc/mail/smtpd.conf > > > > table aliases file:/etc/mail/aliases > > listen on lo0 > > accept for local alias deliver to mbox > > accept from local for any relay > > > > Regards. > > -- > > ~ajitabhpandey > > > > On Wed, May 10, 2017 at 5:25 PM, Gilles Chehade <gil...@poolp.org> > wrote: > > > >> On Wed, May 10, 2017 at 04:32:55PM +0530, Ajitabh Pandey wrote: > >>> > >>> If my understanding about how this should work incorrect? If not then > >> what > >>> am I doing wrong? > >>> > >> > >> What you are doing wrong is not showing your configuration file so we're > >> able to check if it does what you think it is doing > >> > >> > >> -- > >> Gilles Chehade > >> > >> https://www.poolp.org > @poolpOrg > >> > > > > > > > > -- > > Ajitabh Pandey > > http://ajitabhpandey.info/ | http://unixclinic.net/ | > > http://buddingthoughts.info > > ICQ - 150615062 > > Registered Linux User - 240748 > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: What does it mean this error when I try install a package?
Hi, I got a similar message when I try to install python, but upong investigating I realise that python was already installed - perhaps as a pre-requisite for glib2. I am not using PKG_PATH, rather I use /etc/installurl for specifying a list of my mirrors (man installurl(5) for details) $ doas pkg_add python-2.7.13p0 quirks-2.304 signed on 2017-04-02T15:01:33Z https://ftp.openbsd.org/pub/OpenBSD/6.1/packages-stable/amd64/python-2.7.13p0.tgz: ftp: Error retrieving file: 404 Not Found signify: gzheader truncated For a very long time I was trying to understand why pkg_add is looking for package in packages-stable directory when this directory does not exists on any of the mirrors. I checked the standard directory paths for mirror on OpenBSD website and this directory was not there also. Can someone help me understand why it is so, or point to some relevant document. Also, I had to run the following commands as recommended by pkg_info python $ doas ln -sf /usr/local/bin/python2.7 /usr/local/bin/python $ doas ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 $ doas ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config $ doas ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc Do we have any alternatives management system in OpenBSD like we have in linux or this has to be done by hand. Regards. -- ~ajitabhpandey On Mon, Apr 17, 2017 at 5:57 PM, Jiri B <ji...@devio.us> wrote: > On Mon, Apr 17, 2017 at 09:37:56PM +1000, Steven McDonald wrote: > > On Mon, 17 Apr 2017 11:02:37 + > > "C. L. Martinez" <carlopm...@gmail.com> wrote: > > > > > pkg_add -v python-2.7 > > > > There is no package called python-2.7. The package you want is called > > python-2.7.13p0. You have a few options: > > > > 1. pkg_add python, then select the version you want. > > 2. pkg_add python-2.7.13p0 > > 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1)) > > ^ or use 'python%2.7' > > j. > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: smtpd aliases file issue
Hi Gilles, I did not change anything from the default. But I realise all may not be using default file like me and may not know what is in it. Here is a copy of the contents just for reference. The problem is solved by restarting the smtpd as sugested by Edgar. $ doas cat /etc/mail/smtpd.conf table aliases file:/etc/mail/aliases listen on lo0 accept for local alias deliver to mbox accept from local for any relay Regards. -- ~ajitabhpandey On Wed, May 10, 2017 at 5:25 PM, Gilles Chehade <gil...@poolp.org> wrote: > On Wed, May 10, 2017 at 04:32:55PM +0530, Ajitabh Pandey wrote: > > > > If my understanding about how this should work incorrect? If not then > what > > am I doing wrong? > > > > What you are doing wrong is not showing your configuration file so we're > able to check if it does what you think it is doing > > > -- > Gilles Chehade > > https://www.poolp.org @poolpOrg > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: smtpd aliases file issue
Thanks Edgar. That worked. This is what I was missing. I actually removed my .forward from the user01 account now and directly updated the aliases file to forward email to external email address. Just for documentation purpose, here are the steps - $ doas vi /etc/mail/aliases file $ doas newaliases $ doas rcctl restart smtpd Regards. -- ~ajitabhpandey On Wed, May 10, 2017 at 4:58 PM, Edgar Pettijohn <ed...@pettijohn-web.com> wrote: > Did you restart smtpd? > > Sent from BlueMail <http://www.bluemail.me/r?b=9531> > On May 10, 2017, at 6:03 AM, Ajitabh Pandey <ajitabhpan...@gmail.com> > wrote: >> >> Hello, >> >> On an OpenBSD 6.1, I have default smtpd setup. >> >> I placed a .forward file in root's home and am able to receive the emails >> on an external address. >> >> I then removed the .forward from root's home and then placed a .forward in >> the home directory of normal user account (say user01). Emails directly >> send to user01 are being forwarded to external email address as expected. >> >> Next I edited the /etc/mail/aliases file and uncomment the line with root's >> name in it and placed an entry like - >> >> root: user01 >> >> After saving the file, I ran newaliases to generate /etc/mail/aliases.db >> file. >> >> This should forward all email's destined for root to user01 and >> consequently to external email address as user01's home has a .forward file >> in it. >> >> This is not happening. Any email sent to root is being delivered to the >> mailbox of root and the smtpd logs in /var/log/maillog confirmed the same. >> >> If my understanding about how this should work incorrect? If not then what >> am I doing wrong? >> >> Thanks and Regards. >> >> -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
smtpd aliases file issue
Hello, On an OpenBSD 6.1, I have default smtpd setup. I placed a .forward file in root's home and am able to receive the emails on an external address. I then removed the .forward from root's home and then placed a .forward in the home directory of normal user account (say user01). Emails directly send to user01 are being forwarded to external email address as expected. Next I edited the /etc/mail/aliases file and uncomment the line with root's name in it and placed an entry like - root: user01 After saving the file, I ran newaliases to generate /etc/mail/aliases.db file. This should forward all email's destined for root to user01 and consequently to external email address as user01's home has a .forward file in it. This is not happening. Any email sent to root is being delivered to the mailbox of root and the smtpd logs in /var/log/maillog confirmed the same. If my understanding about how this should work incorrect? If not then what am I doing wrong? Thanks and Regards. -- Ajitabh Pandey http://ajitabhpandey.info/
CGI script to see collectd stats
Hello, I am running collectd server on my OpenBSD 6.1 box and various clients are sending stats to this box. I see /var/collectd that various RRDs are getting created. However, I am not sure what should I used to see the graphs. I looked at RRDCGI but it looks way complicated to setup. I could not find collectd-web package also. Searching on web I see that for a non-chrooted web server there are straight forward scripts available. Most of the instructions are for linux. I would prefer to use OpenBSD httpd and not resort to non-chrooted apache or nginx. I am finding it really difficult to find something suitable which works under chroot. I am able to run a hello world cgi script in chroot. If any of you guys have some information/config/tool etc to share for collectd graphs, it would be of great help. Thanks & Regards. -- Ajitabh Pandey http://ajitabhpandey.info/
Re: ypbind hangs - how to debug?
Hi Alexander, 2008/12/23 Alexander Farber alexander.far...@gmail.com Hello, we have around 20 RHEL/CentOS machines (one of them acting as NIS server) and 3 NetApps at work, but also have 1 OpenBSD (virtual) machine acting as an openvpn-Gateway. Until recently it worked well, but now whenever I reboot it the ypbind would just hang. Does anybody has an idea, how to debug it? When I run it from command prompt it will hang too and I see the messages (which is strange because Linux machines work fine): YP server for domain abl_bo not responding, still trying YP server for domain abl_bo not responding, still trying When I run fstat in another xterm it will hang too. Here are my config files and the dmesg is at the bottom: [snipped...] Sometimes the broadcast does not work. So I always put the name of the server to which the client is to be bound as follows: mkdir /etc/yp echo your-nis-server-fqdn /etc/yp/abl_bo I also had a CentOS NIS master server in my setup which was not picked up by the broadcast. The man page pointed me to this route. HTH Regards. -- Ajitabh Pandey http://www.ajitabhpandey.info/ | http://www.unixclinic.net/ ICQ - 150615062 Registered Linux User - 240748
Shutdown and Powerdown when the power button is pressed
Hi, I have a Dell Pentium III 1GHz/512MB running OpenBSD 4.3. I am running the generic kernel. When I press the power button on the front the machine just switches off. I wanted if the power button is pressed then the shutdown is started followed by poweroff (shutdown -hp now). This machine was running Ubuntu sometime back and If I remember correct this used to happen. Any pointers, please? Regards. -- Ajitabh Pandey http://www.ajitabhpandey.info/ | http://www.unixclinic.net/ ICQ - 150615062 Registered Linux User - 240748
Re: Top/uptime seems high
Artur Grabowski wrote: Joachim Schipper [EMAIL PROTECTED] writes: Well, aside from the 'the load average is useless anyway' comments, a load average of 1 is not necessarily unacceptable on a multi-processor machine. (It means one CPU is constantly working.) No, no, no and NO. Please. If you don't understand load averages, do not try to interpret them. snipped.. Following URLs may be helpful. Dont know how relevent they are for OpenBSD. http://www.teamquest.com/resources/gunther/display/4/index.htm http://www.teamquest.com/resources/gunther/display/5/index.htm http://www.teamquest.com/resources/gunther/display/7/index.htm http://www.teamquest.com/resources/gunther/display/8/index.htm Regards. Ajitabh Pandey
Re: BSD laptop
On Thu, 2006-11-16 at 13:38 +0100, Peter N. M. Hansteen wrote: David Chapman [EMAIL PROTECTED] writes: Does anyone have any thoughts or experience with Lenovo or ThinkPad laptops? IBM thinkpad R50e (PIV centrino, 1GB, 60GB, DVD+RW). Currently runs Ubuntu Dapper. Ran OpenBSD 3.9 from USB Pen drive. After downloading the wireless firmware, I got the wireless interface up without error. Cant say about the internal modem though, even linux cannot recognise it. No problem with X window (havent tested GNOME though, just FVWM). At present testing OpenBSD through the pen drive by doing my routine tasks whenever I have time. Just want to make sure the switch from Ubuntu to OpenBSD is smooth. Regards. -- Ajitabh Pandey http://www.ajitabhpandey.info http://www.unixclinic.net ICQ - 150615062 Registered Linux User - 240748