Click to See Complete Forum and Search --> : a problem with having proftpd bind to the right adress


-wassup-
01-30-2003, 07:43 PM
i have my proftpd server running out of my xinetd on red hat 8. the xinetd entry is as follow:
service ftp
{
flags = REUSE
socket_type = stream
instances = 10
wait = no
user = root
server = /usr/local/sbin/proftpd
bind = 212.118.5.35
log_on_success = HOST PID
log_on_faulure = HOST RECORD
}

the problem lies into the bind option. since xinetd seems the ftp server to be bound to a specific adress i would have to change it everytime i log onto the internet. is there any way i can get around this?

Hayl
01-30-2003, 07:47 PM
you could write a script that looked up your ip and parsed the /etc/xinetd.conf file for the correct line, updated it, and restarted xinetd.

(don't ask me how to do it but it is possible :D)

BTW: do you have more than 1 network interface? i.e. a modem for connecting to the net and a network card? if you don't then you don't need the bind line in xinetd.conf and your problem would be resolved.

-wassup-
01-30-2003, 08:18 PM
yes i only have on network interface. its ppp0. but if i comment out that bind line look what happens.
[root@localhost alex]# ftp
ftp> open localhost
ftp: connect: Connection refused
ftp> exit

it will refuse the connection. an nmap scan confirms that the port inst open.
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1599 ports scanned but not shown below are in state: closed)
Port State Service
25/tcp open smtp
6000/tcp open X11

Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds

-wassup-
01-31-2003, 09:45 PM
would this be a possible solution. i get a free domain like whatever.ath.cx and bind the service in the inetd to that and run the dynamic dns program to register my ip on the dns every time?