Open ProjectEdenBot opened 5 years ago
echo 1 > /proc/sys/net/ipv4/ip_forward
PROXY_IP=139.59.137.173
MAIN_IP=149.56.242.157
iptables -t nat -A PREROUTING -p tcp --dport 25565 -j DNAT --to-destination $MAIN_IP:25565
iptables -t nat -A POSTROUTING -p tcp -d $PROXY_IP --dport 25565 -j SNAT --to-source $MAIN_IP
iptables -t nat -A POSTROUTING -j MASQUERADE
to make permanent settings: https://www.thomas-krenn.com/en/wiki/Saving_Iptables_Firewall_Rules_Permanently https://askubuntu.com/a/311054
http://ask.xmodulo.com/create-gre-tunnel-linux.html
LuckPerms data will need to be moved to a db (lots of options, including mongo: https://luckperms.net/wiki/Network-Installation)
conversion steps here: https://luckperms.net/wiki/Switching-storage-types
our proxy plugin will also need some ways to track locations for teleports and local chats and whatnot. wakka found a useful API for this: https://github.com/AnvilPowered/Anvil/
Submitted by Pugabyte