DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th October 2010
webtc webtc is offline
New User
 
Join Date: Oct 2010
Posts: 1
Thanked 0 Times in 0 Posts
Default ftpd - listen port

Ok so i uncommented ftpd from inet .. set it all up .. everythings great .. BUT .. i need it to listen for connections on a port other then port 21.. could anyone tell me how to make it listen on port 3030

thank you
Reply With Quote
  #2   (View Single Post)  
Old 13th October 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,711
Thanked 214 Times in 189 Posts
Default

It may be possible to switch ports, though I have never done so. sftp(1), a secure file transfer client that is part of the native OpenSSH implementation and communcates with sshd(8) as the server, is significantly easier to connect through firewalls. FTP's use of backchannel ports adds complexity to firewall settings, and often must be proxied. (If you're not familiar with configuring FTP through firewalls, you will find this description from the PF User's Guide helpful.)

Note ftpd(8), where it says:
Quote:
DESCRIPTION
ftpd is the Internet File Transfer Protocol server process. The server
uses the TCP protocol and listens at the port specified in the ``ftp''
service specification; see services(5).
Reply With Quote
  #3   (View Single Post)  
Old 13th October 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,711
Thanked 214 Times in 189 Posts
Default

Thinking about this a little more, if I had this need, I would use PF's port redirection capabilities rather than modifying /etc/services.

Of course, I would do my best to avoid the need.

An untested example:
Code:
pass in log proto tcp from $external_net to any port 3030 \
        rdr-to 127.0.0.1 port 21
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
inetd, ftpd problems jsadm FreeBSD General 7 24th August 2008 08:33 PM
ftpd problem narcotico FreeBSD General 3 11th July 2008 03:08 AM
ftpd and hiding . files crofox OpenBSD Packages and Ports 5 26th June 2008 03:01 AM
pure-ftpd hirohitosan FreeBSD Ports and Packages 3 10th June 2008 06:31 PM
netstat state LISTEN change CTOS OpenBSD General 1 4th May 2008 10:52 PM


All times are GMT. The time now is 09:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick