Coder Social home page Coder Social logo

Comments (5)

clmerriman avatar clmerriman commented on June 12, 2024 1

It does resolve the issue. All ports are answering.

Thanks again.

from proftpd-mod_autohost.

Castaglia avatar Castaglia commented on June 12, 2024

It's a bit of sticky issue, due to changes in the core Bindings API (which, in turn, are related to SNI/HOST support); the specific loss of functionality impacted the AutohostPorts directively specifically.

I may have to rethink how that directive works. How do you use it, specifically? Put another way, why do you use AutohostPort, rather than using a Port directive in each of the config files?

from proftpd-mod_autohost.

clmerriman avatar clmerriman commented on June 12, 2024

i currently use port-specific autohost config files. This allows a one virtualhost to handle ports 21 and 990, while another handles just port 22. (The unsupported ports are configrued with a <LIMIT LOGIN>DenyAll</LIMIT>.)

As I understand it, AutoHostPorts tells proftpd which ports to listen on. The actual config file is not read until a connection is made. I'm not sure how a Port directive in the autohost config would have any impact.

What am I missing? Is there an alternative setup?

from proftpd-mod_autohost.

Castaglia avatar Castaglia commented on June 12, 2024

Argh. I found the offending commit -- specifically this bit:

# src/bindings.c
static int init_standalone_bindings(void) {
  int res = 0;
  server_rec *serv = NULL;
  unsigned char *default_server = NULL, is_default = FALSE;

+  memset(ipbind_table, 0, sizeof(ipbind_table));

By clearing the ipbind_table here, the ProFTPD 1.3.7b code is effectively erasing all of the bindings that mod_autohost sets up. Which means that this cannot be easily fixed by mod_autohost -- it's more a bug in the core ProFTPD engine. I'll see what I can do to get that fixed; will need to re-remember why I thought that ipbind_table clearing was needed in the first place.

from proftpd-mod_autohost.

Castaglia avatar Castaglia commented on June 12, 2024

@clmerriman Would you be able to build ProFTPD with proftpd/proftpd#1311, and verify that it fixes the mod_autohost behavior for you? It does seem to fix things for my local testing...

from proftpd-mod_autohost.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.