Solved

Bind ProFTPD to only one IP address (to see in sockstat 192.168.0.1:21)

Posted on 2004-10-12
1
2,991 Views
Last Modified: 2013-11-22
Hello!

FreeBSD machine has 32 IP's.
Want bind ProFTPD to only one IP adress ( Not to use all socket like *:21 - only 192.168.0.1:21)
It's for jails.
Tried all possible variants - zero result.

Here's proftpd config:

ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
DefaultServer                   on

TransferLog                     /var/log/proftpd/proftpd.log
ExtendedLog                     /var/log/proftpd/access.log WRITE,READ
ExtendedLog                     /var/log/proftpd/auth.log AUTH

Port                            21
Umask                           007 007
MaxInstances                    30

User                            root
Group                           wheel

DebugLevel 0

<Directory /*>
GroupOwner      www
</Directory>

DefaultRoot ~
AllowOverwrite          on

Thanks for help!

0
Comment
Question by:kolyakarpov
1 Comment
 
LVL 5

Accepted Solution

by:
van_dy earned 250 total points
ID: 12292309
Hi karpov,
use the DefaultAddress option and then SocketBindTight, I havent tried this but see if it helps. add the following to your config


DefaultAddress     192.168.0.1
SocketBindTight                 on

Hope this helps.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now