Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2001 21:29:21 +1000
From:      "Educatee" <educatee2001@yahoo.com>
To:        "Lowell Gilbert" <lowell@world.std.com>, "FreeBSD questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: [freebsd-questions] HTTP-GW problem. "cannot get our port"?? pls assist.
Message-ID:  <00c101c0d09f$a462f4e0$0100c8c8@co3018900a>
References:  <001501c0cf8d$3af46f10$0100c8c8@co3018900a> <44k844zou3.fsf@lowellg.ne.mediaone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Gilbert,

Thanks.

after reading the man pages for a few more times, this is what I did..

/etc/inetd.conf
---------------
http-gw stream tcp nowait root /usr/local/libexec/http-gw http-gw -daemon
3210

/usr/local/etc/netperm-table
---------------------------
http-gw: deny-hosts unknown
http-gw: hosts 192.168.0.*

/etc/services
------------
http  80/tcp www  www-http
http  80/udp www www-http

When I run inetd I have got an error of:

inetd[442]:http-gw /tcp:unknown service

When I type http-gw -daemon 3210, it can run, but my browser on the same
machine can't get to the internet...

Any idea? is there a place where I could get a documentation on how to setup
this http-gw?
Thanks again for your assitance.







----- Original Message -----
From: "Lowell Gilbert" <lowell@world.std.com>
To: "Educatee" <educatee2001@yahoo.com>
Sent: Sunday, April 29, 2001 7:39 AM
Subject: Re: [freebsd-questions] HTTP-GW problem. "cannot get our port"??
pls assist.


> educatee2001@yahoo.com (Educatee) writes:
>
> > I was trying to run http-gw as a http proxy in FreeBSD4.2. However, it
> > doesn't seems to be functioning, I can't figure out why, can you help
me?
> > Thank you.
> >
> > This is what I have done:
> >
> > /etc/services
> > ------------
> > http  80/tcp www  www-http
> > http  80/udp www www-http
> >
> >
> > /usr/local/etc/netperm-table
> > --------------------------
> > http-gw:   deny-host unknown
> > http-gw:   hosts 192.168.0.*
> >
> > What do I have to put in  /etc/inetd.conf? When I run
> > /usr/local/libexec/http-gw the error is:
> >
> > http-gw[217]: cannot get our port
>
> Use sockstat(1) or one of its relatives to figure out what is using
> that port.  If you're running a web server on this machine, that would
> explain it (you'll have to disable one, or move one to another port).
>
> Good luck.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c101c0d09f$a462f4e0$0100c8c8>