Tcp wrapper

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Tcp wrapper
# 1  
Old 07-26-2002
Tcp wrapper

I installed tcp wrappers version 7.6


modify my inetd.conf file from

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


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

created /etc/hosts.allow file
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 it report permit

can you help?

Thanks in Advance
# 2  
Old 07-26-2002
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 but you don't want to post it

put 1.14.1.x for subnet and as the IP

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

in.ftpd: 10.
in.ftpd: 172.16.
# 3  
Old 07-26-2002
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
# 4  
Old 07-26-2002
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 / is valid (will post back)
# 5  
Old 07-26-2002
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  
Old 07-26-2002
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:

> medusa


> set type=ptr
Address: name = nameserver = nameserver = internet address = internet address =
# 7  
Old 07-26-2002
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

2. UNIX for Dummies Questions & Answers

Linux printer wrapper

Have an HP 1000 j110a on Slackware 13.0. Is there a wrapper I could use with or without CUPS to allow me to print to this device? I am aware of HPLIP and HPIJS both of which are included in 13.37 release I will be ordering but need something until it is delivered. (0 Replies)
Discussion started by: slak0
0 Replies

3. UNIX for Dummies Questions & Answers

What is a wrapper?

Hi, I am a dummy and hear to the computation guys telling me, "Oh! that is easy, you just write a wrapper to do all that bunch of stuff!" :cool: Could someone tell me what is a wrapper? :rolleyes: The only one I know is Cling-Wrap for sandwiches. A small elegant example would be very... (1 Reply)
Discussion started by: genehunter
1 Replies

4. Shell Programming and Scripting

Count script wrapper help

I have this a code that I got help with for another task. I since tried to modify it to work on this task. I need someones expertise to modify it slightly and I am not sure where to start or yet fully understand the logic. I am trying to get a script to read my m-names.txt which has lots... (19 Replies)
Discussion started by: richsark
19 Replies

5. Shell Programming and Scripting

wrapper script in perl

Hi, I am in need of way to facilitate this senerio in a perl script. I have CLI ( command line interface) which I run like so: kip-tepltist -u Xxx -p Xxx Which produces tones of names from each template it found: 194Iselin-NJ 33-IDFLB-North-611-Woodward-8600 ... (5 Replies)
Discussion started by: richsark
5 Replies

6. UNIX for Dummies Questions & Answers

SSH/SSL wrapper

My IRC client does not support SSL, so I was wondering if there was any other way to encrypt the information between SSL clients on an IRC network, maybe by using SSH to enter the IRC program or something (it's a command-line program) and passing all the plain-text through SSH first. I tried... (0 Replies)
Discussion started by: guitarscn
0 Replies

7. Shell Programming and Scripting

Help with a wrapper script not working

Hello, I have the below wrapper script: #!/usr/bin/perl -w if ($^O eq 'MSWin32' ) { $subnet = 'c:\path\to\subnet.txt'; } else { $subnet = '/opt/qip/wrapper-del-sub'; } open FH1, 'jj-deleted-subnets.txt' or die "Can't open 'jj-deleted-subnets.txt' ... (0 Replies)
Discussion started by: richsark
0 Replies

8. UNIX for Dummies Questions & Answers

Writing a wrapper

Hi everyone, I have this custom sudo package over which I want to write a wrapper using PERL. The wrapper will do some pre-work and then call the regular sudo package from within itself. But I am facing a peculiar problem here. Once invoked, I am able to do the pre-work from within the... (1 Reply)
Discussion started by: garric
1 Replies

9. UNIX for Dummies Questions & Answers

What is a wrapper script

I tried searching the forum ,,but couldn't locate ..Can anyone give me a link or some information about wrapper script. (1 Reply)
Discussion started by: thana
1 Replies

10. Shell Programming and Scripting

wrapper for Common Tools

Hi All, I have bunch of different versions of generic tools (like gcc, gdb, ddd etc) and these tools are compiled for different platforms (linux, solaris...) I would like to mount all these tools into some common place (like /nfs/tools/bin) and have the wrapper to pull the latest version of the... (2 Replies)
Discussion started by: cantgetname
2 Replies
Login or Register to Ask a Question