The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mail-wrapper 1.0 (Default branch) iBot Software Releases - RSS News 0 02-19-2008 03:00 PM
What is a wrapper script thana UNIX for Dummies Questions & Answers 1 01-28-2008 08:11 AM
Secure FTP Wrapper 3.0 (Default branch) iBot Software Releases - RSS News 0 01-03-2008 05:10 AM
wrapper for Common Tools cantgetname Shell Programming and Scripting 2 02-22-2007 11:25 PM
What is wrapper script and how to write chiru UNIX for Dummies Questions & Answers 1 06-12-2006 06:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-26-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Tcp wrapper

I installed tcp wrappers version 7.6

and

modify my inetd.conf file from

ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd

to

ftp stream tcp6 nowait root /usr/local/bin/tcpd /usr/sbin/in.ftpd -l

created /etc/hosts.allow file
and
modify it to only allow ftp from mydomain only

but this is denying ftp traffic from everywhere
including mydomain

every time I attempt to ftp it sends a warning message to syslog

warning: can't verify hostname: gethostbyname failed

I issued tcpdmatch in.ftpd 127.0.0.1 it report permit

can you help?

Thanks in Advance
  #2 (permalink)  
Old 07-26-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What did you put in hosts.allow? What is your host IP? Are you using DNS? Are you ftping from one system to another or from the same system to itself?

Give an exact example if you don't want to post real IPs and subnets.

Example: if your subnet is 10.140.16.x and server IP is 10.140.16.10 but you don't want to post it

put 1.14.1.x for subnet and 1.14.1.10 as the IP

Post your hosts.allow (or the portion you changed)
Example

in.ftpd: 10.
in.ftpd: 172.16.
  #3 (permalink)  
Old 07-26-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
in my hosts.allow file

I have

in.ftpd: 191.95.x.x/255.255. 0.0

my host ip is 191.95.x.x

and I am ftping from a pc in my local area network, ip adrress
191.95.x.x
  #4 (permalink)  
Old 07-26-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Change your hosts.allow entry - I set up mine for my local subnet to look like yours (using my numbers) and it failed with service not available right after it worked before the change.

I believe it's the x.x you have in there:
in.ftpd: 191.95.x.x/255.255. 0.0

I changed it (a couple of times) and found this to work;

in.ftpd: 191.95. /255.255. 0.0

in.ftpd: 191.95./255.255. 0.0 will not work - needs that space - I still am looking to see if the /255.255.0.0 is valid (will post back)
  #5 (permalink)  
Old 07-26-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Thanks RTM, I tried your suggestions

in.ftpd: 191.95. /255.255. 0.0

but this still does not work.

still getting the same warning in syslog "warning can't verity hostname: gethostbyname failed.

nslookup can resolve the ip address.
  #6 (permalink)  
Old 07-26-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Do the following to verify DNS - if you don't get anything back on the PTR then DNS is messing you up:

% nslookup
Default Server: which1.mycom.com
Address: 1.14.1.2

> medusa
Server: which1.mycom.com
Address: 1.14.1.2

Name: medusa.mycom.com
Address: 1.14.64.76

> set type=ptr
> 1.14.64.76
Server: which1.mycom.com
Address: 1.14.1.2

76.64.14.1.in-addr.arpa name = medusa.mycom.com
64.14.1.in-addr.arpa nameserver = which1.mycom.com
64.14.1.in-addr.arpa nameserver = which2.mycom.com
which1.mycom.com internet address = 1.14.1.2
which2.mycom.com internet address = 1.14.2.2
  #7 (permalink)  
Old 07-26-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
my Dns is resolving ip address, I carried out your suggestion to test the dns and the Dns work fine.


when I disabled tcp wrappers in /etc/inetd.conf
I was able to ftp from anywhere and no warning message in syslog

but with tcp wrappers enable in /etc/inetd.conf
that is

ftp stream tcp6 nowait root /usr/local/bin/tcpd /usr/sbin/in.ftpd -l

then ftp from my LAN does not work hence error message in syslog
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0