My Opera is closing 1st of March

M.I.T = Multimedia IT dept.

setup reverse ftp-proxy on OpenBSD

,

The ftp-proxy daemon of OpenBSD is a built-in service which can be easily configured to forward FTP connections in /etc/rc.conf.local, /etc/pf.conf, and /etc/sysctl.conf. This daemon listened on port 8021 by default, which can be changed.

1) You can fireup multiple ftp-proxy daemons by CLI:
# /usr/sbin/ftp-proxy -p 8021 -R my.ftp.server -P 21 -D7 -v
add the following line to /etc/rc.conf.local to start at boot:
ftpproxy_flags="-p 8021 -R my.ftp.server -P 21 -D7 -v"

2) Remove the comments of ftp-proxy in /etc/pf.conf:
anchor "ftp-proxy/*"
pass in quick proto tcp to port 21 rdr-to 127.0.0.1 port 8021
# pfctl -f /etc/pf.conf

3) Enable packet forwarding between interfaces.
# sysctl net.inet.ip.forwarding=1
and remove the comment of net.inet.ip.forwarding=1 in /etc/sysctl.conf to enable it at boot.

4) Congratulations! You can connect to my.ftp.server via ftp-proxy as followis:
# ftp my.proxy.server

REFERENCES:
https://calomel.org/ftp_proxy.html

Linux KVM: OpenBSD Guest Hangs At Starting tty FlagsNetwork traffic monitoring in OpenBSD

Write a comment

New comments have been disabled for this post.

February 2014
M T W T F S S
January 2014March 2014
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28