alirezamarzban / ocserv-with-user-management

automaticly install and configure, fully control on ocserv
GNU General Public License v3.0
59 stars 5 forks source link

I used today's version and still have bugs. #4

Closed do02fw closed 1 year ago

do02fw commented 1 year ago

I used today's version and still have bugs. 404 not found.

1
alirezamarzban commented 1 year ago

what do you mean exactly, when your getting this error?

do02fw commented 1 year ago

what do you mean exactly, when your getting this error?

I can't use the script to install the dependency environment because the installation source is not found for ipv6 access.

alirezamarzban commented 1 year ago

if it's possible, please send screenshot, in whitch vps provider you have problem?

do02fw commented 1 year ago

if it's possible, please send screenshot, in whitch vps provider you have problem?

IF MY SERVER DOES NOT HAVE AN IPV6 NETWORK, THERE WILL BE NO 404 NOT FOUND, IF THERE IS AN IPV6 NETWORK, THE IPV6 NETWORK WILL BE USED FIRST TO UPDATE THE INSTALLATION SOURCE, IF THE IPV6 UPDATE MAY APPEAR 404 NOT FOUND, YOU CAN FIND A SERVER WITH IPV4 + IPV6 TO TEST IT.

alirezamarzban commented 1 year ago

please check it now

do02fw commented 1 year ago

3

please check it now

I have now switched to the debian11 system, I used another script, docker, and now without any issues. This is my server IPV6 address, 2404:8c80:0:1009:39d:2e00:73ab:3d95, 2404:8c80:0:1009:3ae:8ea2:7889:b873, its network is normal, you can try to ping it. If possible, can I send you my server account password and you can test it? You will need to provide private contact information though.

alirezamarzban commented 1 year ago

i updated the script

do02fw commented 1 year ago

i updated the script

GOOD!I got it to install this time, Ubuntu 20.04, but I see the warning message during the installation, can you add the IPV6 feature of ocserv? 6 7 8 9

do02fw commented 1 year ago

I updated my system to Ubuntu 22.04 and I don't have this problem anymore, I can boot my system normally.

alirezamarzban commented 1 year ago

in which os you had such a issues?

do02fw commented 1 year ago

in which os you had such a issues?

I had this problem with ubuntu 20.04, I consulted the cloud server vendor and they replied to me that their system was not configured with python environment and variables, when I upgraded from 20.04 to 22.04 and then installed the script without any problems, I think the vendor has made changes or streamlined the system to cause this. If you can, you could add something to the script that detects environment variables and automatically fixes them, and that would solve the situation.

do02fw commented 1 year ago

Do you know how to get ocserv to give priority to ipv6? When I connect to anyconnecy and use the ping command, it returns ipv4 results first, unless I add -6 to the ping it will return ipv6 results, how do I get ocserv to use ipv6 first? 7

alirezamarzban commented 1 year ago

to enable ipv6, you must: nano /etc/sysctl.conf find this line:

net.ipv6.conf.all.forwarding=1

change it to: net.ipv6.conf.all.forwarding=1 then presse ctrl + x and press y and presse enter to save the changes then run this command: sysctl -p then go to ocserv.conf by this command: nano /etc/ocserv/ocserv.conf find this line:

ipv6-network = fda9:4efe:7e3b:03ea::/48

change it to: ipv6-network = fda9:4efe:7e3b:03ea::/48 now find this line:

ipv6-subnet-prefix = 128

or

ipv6-subnet-prefix = 64

change it to: ipv6-subnet-prefix = 128 or ipv6-subnet-prefix = 64 then restart ocserv to take the effects by using script, or use this command: systemctl restart ocserv all is done

do02fw commented 1 year ago

to enable ipv6, you must: nano /etc/sysctl.conf find this line: #net.ipv6.conf.all.forwarding=1 change it to: net.ipv6.conf.all.forwarding=1 then presse ctrl + x and press y and presse enter to save the changes then run this command: sysctl -p then go to ocserv.conf by this command: nano /etc/ocserv/ocserv.conf find this line: #ipv6-network = fda9:4efe:7e3b:03ea::/48 change it to: ipv6-network = fda9:4efe:7e3b:03ea::/48 now find this line: #ipv6-subnet-prefix = 128 or #ipv6-subnet-prefix = 64 change it to: ipv6-subnet-prefix = 128 or ipv6-subnet-prefix = 64 then restart ocserv to take the effects by using script, or use this command: systemctl restart ocserv all is done

Thanks, I have enabled IPV6, but it has a low priority, when I access the internet, it will give priority to ipv4, how can I modify the route to increase the priority of ipv6?