#Help setting up ip-rotation
1 messages · Page 1 of 1 (latest)
Try these how-to first
If your server already had ipv6 I recommend the bottom one
https://blog.arbjerg.dev/2020/3/tunnelbroker-with-lavalink
https://github.com/Tomato6966/Debian-Cheat-Sheet-Setup/wiki/6-lavalink-tutorial#how-to-do-ip-routing-notes
When scraping metadata with Lavalink, it may be useful to have a large block of IPv6 addresses available. Allocating a large prefix of addresses to a machine can be difficult, as this is dependent on the configuration of the IP addresses, which is generally out of your control if you are renting a server.
thank you Luvi,
i think the people who make post this run xD.
my problem on lavalink when i was setup the tunnel broker, following few docs the given.
but lavalink return like :
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
"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
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
i was do this before
and im stuck in here like a week
just more info,
- all work sportfy, soundcloud, radio but not with youtube
the lavalink logs before if using RotateOnBan.
this if using LoadBalance
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
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:
can u do : ip -6 route
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
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
for this u need remove nexthop via fe80::1 dev eth0 weight 1 onlink
refer my case #1237382246420189375 message if can ping but the ip rotation not worked at lavalink
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
um wait u wanna using /64 right ? or /48 ?
idk what is better
/48 better than /64
how do I change that than
on u file .yaml at etc/netplan
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"
?
- "2001:470:b422::2/48"
routes:
- to: default
via: "2001:470:b422::1"```
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
ping6 google.com works
how do I check the other 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
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
another
again
ping6 -I 2001:470:b422:dead::beef google.com
rip
xd any suggestions on how to fix haha
this looks like a permissions issue, did you ever fix the permissions on your config files?
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
https://askubuntu.com/questions/1386063/ubuntu-server-netplan-conflicting-default-route-declarations-for-ipv4-4-diff also note they're using ip4 in this example
i solved the issue with conflicting routes
its just the package loss
when using the tunnel
i got the server from contabo
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
ye idk if they are happy with me using the server to scrape data using lavalink
lol perhaps not
i would ask contabo customer support if they support protocol 41
ok
i found a guy using contabo who did it, i think: #1211003213248069632 message
idk what to follow tho
like I this works:
- ping6 google.com
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
well that's good that you have a working example to follow, I'm not sure how else to help personally. good luck vexi
ty
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
if me i will do :
- clear all network ipv6 default.
- clear ipv6 tunnel broker too.
after all clear,
install again the ipv6 /48 from tunnel broker
net.ipv6.conf.eth0.disable_ipv6 = 1
I tried different stuff out.
This is what I found out:
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
Because ur routes via is incorrect
what should it be
Should be ur block lol/48

"via: "2001:470:b422::1"?
yep
still 100% packet loss
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
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
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
still same 100% packet loss
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
^
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
this is my modified 50-cloud-init.yaml: https://sourceb.in/x4faaJz4yV
this is my ipv6_tunnel.yaml: https://sourceb.in/xyDkPynNRc
can i see the /etc/sysctl.conf ?
try remove :
net.ipv6.conf.all.autoconf=0
net.ipv6.conf.all.accept_ra=0
and do sysctl -p
netplan apply
** (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.
ignore
root@vmd139683:/# sysctl -p
net.ipv6.ip_nonlocal_bind = 1
now what log of
ip -6 route
after do netplan apply
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
wtf
is there a way to reset the 50-cloud-init.yaml file to its original state
sorry this one
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
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
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"
try this
and do
netplan apply
ip -6 route
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
that we got default via 2001:470:25:6a::1 dev he-ipv6 proto static metric 1024 pref medium
wait
y
can u delete : 2001:470:b422::/48 dev lo proto kernel metric 256 pref medium
how
sudo ip route del 2001:470:b422::/48 dev lo proto kernel metric 256 pref medium
try
sudo ip route del 2001:470:b422::/48 dev lo
ok and then
check again ip route
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
cool
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
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
netplan apply ?
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"
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
This right ?
ping6 -I 2001:470:b422::1 google.com
ping6 -I 2001:470:b422:dead::beef google.com```
yes this works now
just :
ratelimit:
ipBlocks:
- 2001:470:b422::/48
retryLimit: 1
searchTriggersFail: true
strategy: LoadBalance
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
so I tried playing music and it works
can i see the logs of lavalink when playing music ?
just damn, idk why it work and why before not work
wrong place
oh i see
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
yes i moved it there
it worked ? need see the logs
no i got error on startup now
what is
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
this is my applicationyml: https://sourceb.in/bHoZSBdukc
wait
i maybe found the error myself
i see it
thank you so much
yups
It won’t be used with Spotify
yes thats why i tested with ytsearch
after realising i input a spotify url to search
lmao
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 ?


