myvesta / vesta

myVESTA Control Panel
https://myvestacp.com
GNU General Public License v3.0
266 stars 46 forks source link

Ipv6 #132

Open serjiomati opened 2 years ago

serjiomati commented 2 years ago

Hi, u panel support ipv6?

myvesta commented 2 years ago

No.

serjiomati commented 2 years ago

No.

do you have any plans to implement it or not?

myvesta commented 2 years ago

Probably not soon.

remontti commented 2 years ago

Manual mode

/usr/local/vesta/data/templates/web/nginx

*.tpl

    listen      [2000:1234:4321::abcd]:80;
    add_header  Strict-Transport-Security "max-age=31536000";

*.stpl

    listen      [2000:1234:4321::abcd]:443 ssl http2;
    add_header  Strict-Transport-Security "max-age=31536000";

/usr/local/vesta/data/templates/dns


ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='3' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns3%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='4' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns4%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='5' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns5%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='6' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns6%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='7' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns7%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='8' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns8%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='9' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='10' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='11' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='12' RECORD='mail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='13' RECORD='smtp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='14' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='15' RECORD='imap' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='16' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='mail.%domain%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='17' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='18' RECORD='_dmarc' TYPE='TXT' PRIORITY='' VALUE='"v=DMARC1; p=none"' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='19' RECORD='@' TYPE='SPF' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% ~all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='20' RECORD='@' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='21' RECORD='www' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='22' RECORD='ftp' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='23' RECORD='mail' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='24' RECORD='smtp' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='25' RECORD='pop' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='26' RECORD='imap' TYPE='AAAA' PRIORITY='' VALUE='2000:1234:4321::abcd' SUSPENDED='no' TIME='%time%' DATE='%date%'
myvesta commented 2 years ago

Right, you can always staticaly enter IPv6 in template :D

serjiomati commented 2 years ago

Right, you can always staticaly enter IPv6 in template :D

Is it difficult to do everything automatically? or why is there no IPv6 support? does hestia support ipv6?

bmeirellesRJ commented 2 years ago

is there plan to implement? this is the best panel for debian and no panel supports for ipv6

mkasimd commented 1 year ago

@myvesta could you perhaps add additional templates for IPv6-readiness? For nginx for instance, using

listen %ip%:443 ssl http2;
listen [::]:443 ssl http2;

should suffice instead of adding a specific IPv6-address. That would allow a dual-stack configuration without the need to look for a specific IPv6 address allocated to the network interfaces. A sample template can be found here: https://github.com/liberaledemokraten/documentation/blob/master/pages/02.server-setup/03.templates/http2ipv6.stpl.txt

If using a specific address is important, one could of course also get the actual IPv6 address from the interface e.g. using ip -6 addr | grep inet6 | awk -F '[ \t]+|/' '{print $3}' | grep -v ^::1 | grep -v ^fe80

agentmishra commented 6 months ago

Right, you can always staticaly enter IPv6 in template :D

Is it difficult to do everything automatically? or why is there no IPv6 support? does hestia support ipv6?

yes Hestia does support ipv6

mkasimd commented 6 months ago

yes Hestia does support ipv6

@agentmishra that would be news to me. Last time I checked a few weeks ago (and the latest Hestia release was months ago), adding an IPv6 address through the Web UI was not possible. Also the default nginx templates come with IPv4-only

So.. could you explain how you came to the conclusion that Hestia supports IPv6 out of the box in a way Vesta doesn’t? If there’s been some changes in Hestia making this possible, maybe Vesta devs could have a look at it as both Hestia and Vesta share the same base.