#Help setting up ip-rotation

1 messages · Page 1 of 1 (latest)

woeful mason
#

up have same problem but in other provider

pastel hornet
# woeful mason up have same problem but in other provider
GitHub

How to setup your linux server and install nodejs, python, ffmpeg and java. Working good for Discord Bot hosting and other hostings! - Tomato6966/Debian-Cheat-Sheet-Setup

woeful mason
#
2024-05-07T17:16:10.009+02:00  WARN 3822219 --- [  XNIO-1 task-2] c.s.d.l.p.DefaultAudioPlayerManager      : Suspicious exception for loading item ytsearch:music

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: This video cannot be loaded.
#

i dont have any idea now

pastel hornet
#

"Connect timed out"

Did you check that your ipv6 is working?

from https://blog.arbjerg.dev/2020/3/tunnelbroker-with-lavalink - Test your configuration

# Test that IPv6 works in the first place
ping6 google.com

# If you have the IPv6 block 1234:1234:1234::/48
# You should be able to use any of the IPs within that block
ping6 -I 1234:1234:1234:: google.com
ping6 -I 1234:1234:1234::1 google.com
ping6 -I 1234:1234:1234:dead::beef google.com

# Make sure your /48 block appears when running this command
ip -6 route
woeful mason
pastel hornet
# woeful mason

If your IPV6 is working

ip -6 route replace local YOUR_48_BLOCK dev lo
and check your lavalink config then it sould be working

woeful mason
#

and im stuck in here like a week

#

just more info,

  • all work sportfy, soundcloud, radio but not with youtube
woeful mason
woeful mason
#

ah i found the issue

#

now worked.
so for people who has config correctly, testing ping allworked. but still error like me at above.
u need check ip -6 route

ip -6 route

root@catfein:/var/lib/pterodactyl/volumes/c72e2b97-05d4-4fac-8130-272616ea648d# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
blackhole 100::1 dev lo proto bird metric 32 pref medium
2001:470:7069::/48 dev he-ipv6 proto bird metric 32 pref medium
2001:470:7069::/48 dev he-ipv6 proto kernel metric 256 pref medium
2a03:4000:6a:10::/64 dev eth0 proto kernel metric 256 pref medium
2a03:4000:6a:10::/64 dev lo metric 1024 pref medium
unreachable 2a05:dfc1:9158::/48 dev lo proto bird metric 32 pref medium
fdba:17c8:6c94::/64 dev pterodactyl0 proto bird metric 32 pref medium
fdba:17c8:6c94::/64 dev pterodactyl0 proto kernel metric 256 pref medium
fdba:17c8:6c94::/64 dev pterodactyl0 metric 1024 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev pterodactyl0 proto kernel metric 256 pref medium
...
default proto static metric 1024 pref medium
        nexthop via 2001:470:7069::1 dev he-ipv6 weight 1 
        nexthop via fe80::1 dev eth0 weight 1

Remove nexthop via fe80::1 dev eth0 weight 1

just make sure the default route only one and thats is your ipv6 like :

default proto static metric 1024 pref medium
        nexthop via 2001:470:7069::1 dev he-ipv6 weight 1
midnight moth
#

commands I used in exact order

  • sysctl -w net.ipv6.ip_nonlocal_bind=1
  • echo 'net.ipv6.ip_nonlocal_bind=1' >> /etc/sysctl.conf
  • sysctl -w net.ipv6.conf.all.autoconf=0
  • sysctl -w net.ipv6.conf.all.accept_ra=0
  • echo 'net.ipv6.conf.all.autoconf=0' >> /etc/sysctl.conf
  • echo 'net.ipv6.conf.all.accept_ra=0' >> /etc/sysctl.conf
  • cd /etc/netplan/
  • sudo nano ipv6_tunnel.yaml
#

->

network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:25:6a::2/64"
      routes:
        - to: default
          via: "2001:470:25:6a::1"

save -> exit

  • sudo netplan apply
#

now I am getting this error:

woeful mason
midnight moth
#
root@vmd139683:/etc/netplan# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:25:6a::/64 dev he-ipv6 proto kernel metric 256 pref medium
2a02:c206:3013:9683::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default proto static metric 1024 pref medium
        nexthop via 2001:470:25:6a::1 dev he-ipv6 weight 1
        nexthop via fe80::1 dev eth0 weight 1 onlink
woeful mason
# midnight moth ```bash root@vmd139683:/etc/netplan# ip -6 route ::1 dev lo proto kernel metric ...

have u try ?

change 1234:1234 etc with u ipv6

# Test that IPv6 works in the first place
ping6 google.com

# If you have the IPv6 block 1234:1234:1234::/48
# You should be able to use any of the IPs within that block
ping6 -I 1234:1234:1234:: google.com
ping6 -I 1234:1234:1234::1 google.com
ping6 -I 1234:1234:1234:dead::beef google.com

# Make sure your /48 block appears when running this command
ip -6 route
woeful mason
#

refer my case #1237382246420189375 message if can ping but the ip rotation not worked at lavalink

midnight moth
#

I modified my .yaml in etc/netplan

and now I ge this:

root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:25:6a::/64 dev he-ipv6 proto kernel metric 256 pref medium
2a02:c206:3013:9683::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium
woeful mason
#

um wait u wanna using /64 right ? or /48 ?

midnight moth
#

idk what is better

woeful mason
#

/48 better than /64

midnight moth
#

how do I change that than

woeful mason
#

on u file .yaml at etc/netplan

midnight moth
#
network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:25:6a::2/64"
      routes:
        - to: default
          via: "2001:470:25:6a::1"
  ethernets:
    eth0:
      dhcp4: true
      dhcp6: false
#

yes but change what

#

addresses?

#

"2001:470:25:6a::2/64"

to

"2001:470:b422::/48"
?

woeful mason
#
        - "2001:470:b422::2/48"
      routes:
        - to: default
          via: "2001:470:b422::1"```
midnight moth
#
root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev he-ipv6 proto kernel metric 256 pref medium
2a02:c206:3013:9683::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via 2001:470:b422::1 dev he-ipv6 proto static metric 1024 pref medium
woeful mason
#

yep

#

try ping

midnight moth
#

ping6 google.com works

how do I check the other ones

woeful mason
#
ping6 -I 2001:470:b422:: google.com
ping6 -I 2001:470:b422::1 google.com
ping6 -I 2001:470:b422:dead::beef google.com
midnight moth
#
ping6 -I 2001:470:b422:: google.com
ping6 -I 2001:470:b422::1 google.com
ping6 -I 2001:470:b422:dead::beef google.com
#

ah ok

woeful mason
#

another

midnight moth
woeful mason
#

again

midnight moth
#

again?

#

same command

#

or different

woeful mason
#
ping6 -I 2001:470:b422:dead::beef google.com
midnight moth
#

same

woeful mason
#

MiniheraBall1 rip

midnight moth
#

xd any suggestions on how to fix haha

cloud void
midnight moth
#

yes

#
  • sudo chmod 600 /etc/netplan/50-cloud-init.yaml /etc/netplan/ipv6_tunnel.yaml
cloud void
#

well idk how to help with the conflicting routes issue unfortunately. i found a stackoverflow article which seems to show someone with a similar problem + a vague solution, but I'm not knowledgable enough in networking to help you apply it to your situation

midnight moth
#

its just the package loss

#

when using the tunnel

cloud void
#

ahh i see

#

are you hosting on your own machine or with cloud stuff?

midnight moth
#

i tried this

#

didnt solve the issue

midnight moth
cloud void
#

it's possible that their hardware doesn't support protocol 41 (ip6in4). I was having an issue similar to yours, where I could ping myself at ::1 but when trying to ping tunnelbroker endpoint of the tunnel (::2) I was also getting 100% packet loss. it turns out that my router's firmware doesn't allow protocol 41 traffic, which is a necessity if u want to use tunnelbroker

#

maybe its the same issue for you, maybe not. i did a quick google search and couldn't find a certain answer about whether contabo supports this protocol or not. as a paying customer though, I'm sure their customer support would get you an answer if you asked them about it

midnight moth
#

ye idk if they are happy with me using the server to scrape data using lavalink

cloud void
#

lol perhaps not

midnight moth
#

xd

#

so what should I google

cloud void
#

i would ask contabo customer support if they support protocol 41

midnight moth
#

like I this works:

but not these ones

ping6 -I 2001:470:b422:: google.com
ping6 -I 2001:470:b422::1 google.com
ping6 -I 2001:470:b422:dead::beef google.com
cloud void
#

well that's good that you have a working example to follow, I'm not sure how else to help personally. good luck vexi

midnight moth
#

ty

midnight moth
#

idk i tried following what @timid flicker told the guy here #1211003213248069632 message

and I did the steps he did but I still have 100% packet loss.. what a bummer

woeful mason
woeful mason
midnight moth
#

if I use the netplan provided by tunnelbroker:

network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:25:6a::2/64"
      routes:
        - to: default
          via: "2001:470:25:6a::1"

this command works and I have no packet loss:
ping6 -I 2001:470:b422::1 google.com

#

however if I try to use this:

network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:b422::2/48"
      routes:
        - to: default
          via: "2001:470:25:6a::1"

then I get 100% packet loss

timid flicker
#

Because ur routes via is incorrect

midnight moth
#

what should it be

timid flicker
#

Should be ur block lol/48

woeful mason
midnight moth
#

"via: "2001:470:b422::1"?

woeful mason
#

yep

midnight moth
#

still 100% packet loss

woeful mason
#

try :

network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:b422::2/48"
      gateway6: "2001:470:b422::1"

netplan apply

and

ip -6 route

give the screenshhot / logs

midnight moth
#
root@vmd139683:/etc/netplan# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
woeful mason
#

ip -6 route replace local 2001:470:b422::/48 dev lo

#

done

#

actually i didnt see the default route on that ip -6 route. sus

but try ping using, test one by one

ping6 -I 2001:470:b422:: google.com ping6 -I 2001:470:b422::1 google.com ping6 -I 2001:470:b422:dead::beef google.com

midnight moth
#

still same 100% packet loss

woeful mason
# midnight moth ``` root@vmd139683:/etc/netplan# ip -6 route ::1 dev lo proto kernel metric 256 ...

because log of u ip -6 route didnt have any default route for u ipv6

looks like :

::1 dev lo proto kernel metric 256 pref medium
blackhole 100::1 dev lo proto bird metric 32 pref medium
2001:470:7069::/48 dev he-ipv6 proto bird metric 32 pref medium               <- ur ipv6/48
2001:470:7069::/48 dev he-ipv6 proto kernel metric 256 pref medium            <- ur ipv6/48
2a03:4000:6a:10::/64 dev eth0 proto kernel metric 256 pref medium
2a03:4000:6a:10::/64 dev lo metric 1024 pref medium
unreachable 2a05:dfc1:9158::/48 dev lo proto bird metric 32 pref medium
fdba:17c8:6c94::/64 dev pterodactyl0 proto bird metric 32 pref medium
fdba:17c8:6c94::/64 dev pterodactyl0 proto kernel metric 256 pref medium
fdba:17c8:6c94::/64 dev pterodactyl0 metric 1024 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev pterodactyl0 proto kernel metric 256 pref medium
default proto static metric 1024 pref medium
        nexthop via 2001:470:7069::1 dev he-ipv6 weight 1                    <- ur gateway / default route

^

midnight moth
#

yes cause removed default route for ipv6 because i ran into this issue:

** (process:16116): WARNING **: 17:51:26.653: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv6 (table: main, metric: default), first declared in he-ipv6 but also in eth0
woeful mason
midnight moth
woeful mason
#

netplan apply

midnight moth
#

** (process:16841): WARNING **: 18:31:17.912: gateway6 has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

woeful mason
#

ignore

midnight moth
#

root@vmd139683:/# sysctl -p
net.ipv6.ip_nonlocal_bind = 1

woeful mason
#

now what log of

ip -6 route

after do netplan apply

midnight moth
#

root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium

woeful mason
#

wtf

midnight moth
#

is there a way to reset the 50-cloud-init.yaml file to its original state

#

sorry this one

woeful mason
#

um wait, try cahnge again back to

network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:b422::2/48"
      routes:
        - to: default
          via: "2001:470:b422::1"

the tunnel file

#

and netplan apply

midnight moth
#

yes

#

ip -6 route again?

woeful mason
#

yep

#

same ?

midnight moth
#

root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev lo proto kernel metric 256 pref medium
2001:470:b422::/48 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium

woeful mason
#

ping lost too ?

midnight moth
#

ye 100% packet loss

#

it only works with this

network:
  version: 2
  tunnels:
    he-ipv6:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:25:6a::2/64"
      routes:
        - to: default
          via: "2001:470:25:6a::1"
woeful mason
#

and do
netplan apply

ip -6 route

midnight moth
#
root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:25:6a::/64 dev he-ipv6 proto kernel metric 256 pref medium
2001:470:b422::/48 dev lo proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium
root@vmd139683:/# ping6 -I 2001:470:b422:: google.com
PING google.com(ams16s21-in-x0e.1e100.net (2a00:1450:400e:802::200e)) from 2001:470:b422:: : 56 data bytes
64 bytes from ams15s41-in-x0e.1e100.net (2a00:1450:400e:802::200e): icmp_seq=1 ttl=117 time=29.5 ms
64 bytes from ams15s41-in-x0e.1e100.net (2a00:1450:400e:802::200e): icmp_seq=2 ttl=117 time=29.1 ms
woeful mason
#

that we got default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium

#

wait

midnight moth
#

y

woeful mason
#

can u delete : 2001:470:b422::/48 dev lo proto kernel metric 256 pref medium

midnight moth
#

how

#

sudo ip route del 2001:470:b422::/48 dev lo proto kernel metric 256 pref medium

woeful mason
#

try

sudo ip route del 2001:470:b422::/48 dev lo

midnight moth
#

ok and then

woeful mason
#

check again ip route

midnight moth
#

root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:25:6a::/64 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium

woeful mason
#

cool

midnight moth
#

so now what?
do I change my netplan again

#

to /48

woeful mason
#

now try :
change again the config file to

network:
  version: 2
  tunnels:
    he-ipv6-New:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:b422::2/48"
      gateway6: "2001:470:b422::1"
#

netplan apply

#

check ip route

midnight moth
#

root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:25:6a::/64 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium

woeful mason
#

netplan apply ?

midnight moth
#

i did

woeful mason
#

what if :

network:
  version: 2
  tunnels:
    he-ipv6-New:
      mode: sit
      remote: 216.66.80.98
      local: 81.17.100.27
      addresses:
        - "2001:470:b422::2/48"
      routes:
        - to: default
          via: "2001:470:b422::1"
midnight moth
#

root@vmd139683:/# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:25:6a::/64 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium

#

now ping works

#

but what did change

woeful mason
#

all ping ?

midnight moth
#

yes

#

so and what do I put in my lavalink yaml

woeful mason
#

This right ?

ping6 -I 2001:470:b422::1 google.com
ping6 -I 2001:470:b422:dead::beef google.com```
woeful mason
midnight moth
#

ok tysm btw

#

i was literally on the edge of giving up because i kept getting 100% packet loss

#

even after following the instructions

#

1 to 1

woeful mason
#

try it, i really wanna know are that working corerctly, because its little funny

midnight moth
#

so I tried playing music and it works

woeful mason
#

can i see the logs of lavalink when playing music ?

#

just damn, idk why it work and why before not work

midnight moth
woeful mason
#

i didnt see the ipblock config correctly

midnight moth
#

or where do you mean

woeful mason
#

wrong place

midnight moth
#

oh i see

woeful mason
#
server:
        bufferDurationMs: 400
        filters:
            channelMix: true
            distortion: true
            equalizer: true
            karaoke: true
            lowPass: true
            rotation: true
            timescale: true
            tremolo: true
            vibrato: true
            volume: true
        frameBufferDurationMs: 10000
        gc-warnings: true
        opusEncodingQuality: 10
        password: catfein
        playerUpdateInterval: 5
        ratelimit:
            ipBlocks:
                - 2001:470:7845::/48   <- Here
            retryLimit: 1
            searchTriggersFail: true
            strategy: LoadBalance
        resamplingQuality: HIGH
        soundcloudSearchEnabled: true
        sources:
            bandcamp: true
            http: true
            local: false
            soundcloud: true
            twitch: true
            vimeo: true
            youtube: false
        trackStuckThresholdMs: 10000
        useSeekGhosting: true
midnight moth
#

yes i moved it there

woeful mason
#

it worked ? need see the logs

midnight moth
#

no i got error on startup now

woeful mason
#

what is

midnight moth
#

APPLICATION FAILED TO START


Description:

Failed to bind properties under 'lavalink.server.ratelimit' to lavalink.server.config.RateLimitConfig:

Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [lavalink.server.config.RateLimitConfig]

Action:

Update your application's configuration

#

wait

#

i maybe found the error myself

woeful mason
#

i see it

midnight moth
woeful mason
#

thats correct

#

try play music

midnight moth
#

works

#

do you need logs as well?

woeful mason
#

yeppss i love logs

midnight moth
#

it works with yt search as well

#

not only spotify

woeful mason
midnight moth
#

thank you so much

woeful mason
#

yups

midnight moth
#

<3

timid flicker
midnight moth
#

yes thats why i tested with ytsearch

#

after realising i input a spotify url to search

#

lmao

livid edge
#

I have same problem

#
network:
��ethernets:
����eth1:
������addresses:
����� - 82.16.177.67/27
����� - 2a09:17c0::2/48

������match:
��������macaddress: B0:58:99:FF:R2:C7
������nameservers:
��������addresses:
������� - 1.1.1.1
������� - 8.8.8.8
������� - 4.4.4.4
������routes:
����� - to: default
��������via: 82.16.177.67
����� - to: default
��������via: 2a09:17c0::1
��version: 2```
#

My netplan configuration

#
::1 dev lo proto kernel metric 256 pref medium
2001:470:1829::2 dev he-ipv6 metric 1024 pref medium
2001:470:1829::/64 dev he-ipv6 proto kernel metric 256 pref medium
2a09:17c0::/48 dev eth1 proto kernel metric 256 pref medium
fe80::/64 dev he-ipv6 proto kernel metric 256 pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
default metric 1024 pref medium
        nexthop via 2001:470:1829::2 dev he-ipv6 weight 1 onlink 
        nexthop via 2a09:17c0::1 dev eth1 weight 1```
#

ip -6 route

#

@woeful mason Could you please help me ?