ftp giving url but i want the IP address
Greg Larkin
glarkin at FreeBSD.org
Mon Apr 5 15:46:30 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Walter wrote:
> I want to parse ftp error messages in auth.log and use the
> ip address in inserting a block into ipfw. It works, except
> when ftpd spits out the host-specific url rather than the ip.
> Adding "-h" to the ftpd command in inet.conf didn't help.
> Can someone tell me how to do this, or point me to code
> (C) to convert it?
>
> Thanks. I'm off-list so please reply directly.
>
> Walter
> _______________________________________________
Hi Walter,
Did you send a HUP signal to inetd so it rereads the config file?
kill -HUP `cat /var/run/inetd.pid`
Hope that helps,
Greg
- --
Greg Larkin
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFLugXR0sRouByUApARAv00AJ9Ci0rwzG4cMBTQr9d50Lk4T6iXwwCgrtoJ
p8rszot7YctmhKv0B2QpraE=
=E9/c
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list