#Is there a way to bind Discord authentication to a specific IP?
1 messages · Page 1 of 1 (latest)
Host ctrlpanel on another ip
we have 800+ servers running discord bots 😭
- how??? do you mean like another machine?
- how do i know which ip ctrlpanel is on
Yeah another machine or if you good with Networking another ip but I'm not good with Networking so don't ask me
The easy way:
Use a diffrent physical system or VM
The bit harder way:
Use docker host ctrlpanel within that and bind the container to your decired IP
The hard way:
Mark outgoing packages via iptables and route them onto the right IP
THIS IS A EXAMPLE AND DEFENTLY NEEDS AJUSTING
iptables -t mangle -A OUTPUT -p tcp --sport <80/443> -m owner --uid-owner <Your Webuser Username> -j MARK --set-mark 1
iptables -t nat -A POSTROUTING -o <Interface Name where the IP is bound> -m mark --mark 1 -j SNAT --to-source <Public ip>