• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

How to make sw-cp-server listen on ipv6

105547111

Silver Pleskian
IgorG,

Can you tell me what do I need to modify to get the parallels panel at :8443 to listen on ipv6? I have managed to get my server running email (postfix as this supports ipv6 where qmail does not), DNS, http, ftp, everything but the damn panel.

I am hoping it has not been compiled without ipv6 support. If so how can the sw-cp-server be compiled with ipv6 support?

Thanks!
 
IgorG,

I see its built from light httpd and thank goodness it has been compiled with ipv6 support:

# sw-cp-serverd -V
sw-cp-server-1.0.0 (ssl) - a light and fast webserver
Build-Date: Apr 1 2010 14:34:48

Event Handlers:

+ select (generic)
+ poll (Unix)
+ rt-signals (Linux 2.4+)
+ epoll (Linux 2.6)
- /dev/poll (Solaris)
- kqueue (FreeBSD)

Network handler:

+ sendfile

Features:

+ IPv6 support
+ zlib support
+ bzip2 support
+ crypt support
+ SSL Support
+ PCRE support
- mySQL support
- LDAP support
- memcached support
- FAM support
- LUA support
- xml support
- SQLite support
- GDBM support


So could you please find out what config changes I need to get it listening on ipv6 please?

I already edited the /etc/sw-cp-server/config to enable ipv6 support:

server.modules = ()
server.document-root = "/dev/null"
server.port = 10001
server.use-ipv6 = "enable"
#server.bind = "127.0.0.1"
server.pid-file = "/var/run/sw-cp-server.pid"
server.errorlog-use-syslog = "disable"
server.errorlog = "/var/log/sw-cp-server/error_log"
server.username = "sw-cp-server"
server.groupname = "sw-cp-server"

include_shell "/usr/share/sw-cp-server/applications-conf.sh"

I commented out the 127.0.0.1 as I can't figure out the syntax to allow multiple hosts, however [::1] or adding in my ipv6 address works for it to start as long as you add only 1.

I tried server.bind = "127.0.0.1" "[::1]" and "127.0.0.1 [::1]" and "127.0.0.1, [::1]" and "127.0.0.1"; "[::1]" all no good cp-server wont restart.

Any ideas?
 
Last edited:
Back
Top