Help with accessing server through a oracle VM
Continued from https://discord.com/channels/348681414260293634/348681414260293635/1120798988711493813 , I'm a bit stupid
77 Replies
@Livor Mortis So wait, what did you do to fix it?
@Lunaiskey too ^^^
Probably shouldnt just disable ufw... bla bla bla security something blablabla
but you can probably do something like
Alright
What would that do security wise?
Because this is basically only going to be for my close IRL friends
or you could
sudo ufw disable
to edit iptables directly
for security, it isnt actually that much worse, since oracle's panel still enforces a firewallig start with disabling ufw or iptables or whatever, then make sure the oracle subnet thingy is setup correctly then attempt to join, if it works then you have the fun of setting up the firewall properly, if not then its gotta be a server problem
But it is slightly less secure, since its a layer of defence you're ripping out
π
it could be completely possible that the port is open successfully but the minecraft server instance isnt
ima try the first then
To disable that one you would just do
sudo ufw default deny
yeah?
I tried running commands like whitelisting myself and whatnot, it worked fine in the consoleI think so
Starting the server after disabing ufw
that has nothing to do with the server being setup incorrectly such as setting an ip in the server.properties
This is what I did for my oci instance, btw
ah lmao
Alright
It failed again ;-;
I got this
append
sudo
before each of those commandsπ
did all of them
aand starting
up
YEAHHHH
I'M IN
TYSM
so it was iptables or ufw messing with it
Not sure why, or what you were doing wrong
Alright π
If you ever open this server up to the general public, you may want to think about actually fixing it rather than just allowing everything lol
But good to see it works for you now
ufw is annoying
It can be, yeah
No plans of doing that, but yeah that would probably be for the best lmfao
Ah wait
another question
How would I be able to regenerate just the world with a new seed while still keeping things like mods and whatnot installed server-side?
- stop the server
- delete the
world
folder
- optionally backup the playerdata
folder (found within the world
folder), that contains playerdata, inventories, etc
- change the seed
- if you want to keep playerdata, manually remake the world
folder, and put your playerdata
folder there
- restart the serverHow would I change the seed?
itβs an option in server.properties
usually the seed automatically changes
server.properties file
π
I'm a complete noob with the command line, I have no idea how to manage files or edit them through it at all π
so when the world is created its saved in the world folder somewhere, changing the seed in the server properties would hardcode a seed until you changed it including deleting the world folder
if you want a fresh random world then just delete the world folder
Yeah I'd want to set the seed
WinSCP letβs you manage and upload files from your computer with a UI btw. Just select the sftp option and use the same credentials you use for ssh
oh shit that sounds great
while managing my own server i do most of it through ftp cus doing stuff through cmdline is bleh
you can use any ftp client usually
π
winscp or filezilla
either one
Alr, ima try filezilla
FileZilla will let you, you just have to put sftp:// before the ip iirc
π
or just select sftp in the protocol field
https://senpai.plz-choke.me/zABxO5sJ
FileZilla - The free FTP solution
FileZilla - The free FTP solution for both client and server. Filezilla is open source software distributed free of charge.
This is filezilla, correct?
yep
alr
Iβve honestly never seen that part of the ui in FileZilla before
if you click on the site manager button https://senpai.plz-choke.me/g8bWwh6z
you can setup a bunch of connections
then just access them from the dropdown menu there
https://senpai.plz-choke.me/fDfLMf5U
without retyping the password/host/port every time
Interesting. WinSCP just opens to a menu like that by default
Boom, got filezilla
π
So would the IP go under host?
but then wtf should be there for password?
No ssh keys? :pensive_bread:
Does oracle make you setup ssh keys for their vpsβs?
Yes
FileZilla Pro
How to Use SSH Private Keys for SFTP - FileZilla Pro
How to Use SSH Private Keys for SFTP - FileZilla Pro
Ty
Open the site manager (top left)
click new site (bottom left)
change protocol to sftp
host and port are self explanatory
and change logon type to key file
and put your username under user and select the location of your private key
Alr
It's not connecting ;-;
what port are you using
25565
you dont ssh on that port
thats the port your mc server is running on
ah-
use port 22
π
ayyyy I'm in
tysm
:dab:
π
So, seed is in server.properties
to reset the world, just delete the world folder
Yeah, stop the server first
yup
Is it possible for me to edit the file without bringing it back and forth?
wdym
Like directly opening the
server.properties
file via filezilla
as oppposed to downloading it on my end, editing it, and then uploading it backyou could
nano path/to/your/file.ext
or just right click it in filezilla
hit editAh lmfao
then save it, and filezilla will offer to upload it automatically
I am blind!
Well, thank you
time to download all of the server-side mods and whatnot
Hi all, I just relaunched my Oracle VM. Even though I have the firewall rules on the web console (it kept the old settings as it belongs to the networking stack not the compute itself) and added the proper iptables rules I can't connect to the server. I have SSH but according to netcat the 25565 port is not open.
I have these rules in iptables
ACCEPT tcp -- anywhere anywhere tcp dpt:25565
ACCEPT udp -- anywhere anywhere udp dpt:25565
ACCEPT udp -- anywhere anywhere udp dpt:19132
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
some guide suggested OUTPUT rules too but it didn't help, what else can it be?
I lost my previous instance a few weeks ago because I messed up iptables and trying to set it up again... it took a while to get free capacity at Oracle and now I'm stuck here
damn i just realised I have ufw too, it's an ubuntu instance
but that's inactive...
I think it must be something with the Oracle Security List or having created the instance in the existing VNet... if I remove all iptables rules it is still unreachableif your locked yourself out off ssh when setting up your firewall its possible to reaccess it
ive done it before a couple times
well it's a new instance but I'd be curious to know how, it was a wrong iptables rule
the current situation is more upsetting tho... seems like everything is ok but the port is unreachable