A
Admincraftβ€’2y ago
Selkier

Help with accessing server through a oracle VM

77 Replies
Selkier
SelkierOPβ€’2y ago
@Livor Mortis So wait, what did you do to fix it? @Lunaiskey too ^^^
MrMcyeet
MrMcyeetβ€’2y ago
Probably shouldnt just disable ufw... bla bla bla security something blablabla but you can probably do something like
sudo ufw default allow
sudo ufw default allow
Selkier
SelkierOPβ€’2y ago
Alright What would that do security wise? Because this is basically only going to be for my close IRL friends
MrMcyeet
MrMcyeetβ€’2y ago
or you could sudo ufw disable
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
to edit iptables directly for security, it isnt actually that much worse, since oracle's panel still enforces a firewall
Lunaiskey
Lunaiskeyβ€’2y ago
ig 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
MrMcyeet
MrMcyeetβ€’2y ago
But it is slightly less secure, since its a layer of defence you're ripping out
Selkier
SelkierOPβ€’2y ago
πŸ‘
Lunaiskey
Lunaiskeyβ€’2y ago
it could be completely possible that the port is open successfully but the minecraft server instance isnt
Selkier
SelkierOPβ€’2y ago
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 console
MrMcyeet
MrMcyeetβ€’2y ago
I think so
Selkier
SelkierOPβ€’2y ago
Starting the server after disabing ufw
Lunaiskey
Lunaiskeyβ€’2y ago
that has nothing to do with the server being setup incorrectly such as setting an ip in the server.properties
MrMcyeet
MrMcyeetβ€’2y ago
This is what I did for my oci instance, btw
Selkier
SelkierOPβ€’2y ago
ah lmao Alright It failed again ;-;
Selkier
SelkierOPβ€’2y ago
I got this
No description
MrMcyeet
MrMcyeetβ€’2y ago
append sudo before each of those commands
Selkier
SelkierOPβ€’2y ago
πŸ‘ did all of them aand starting up YEAHHHH I'M IN TYSM
MrMcyeet
MrMcyeetβ€’2y ago
so it was iptables or ufw messing with it Not sure why, or what you were doing wrong
Selkier
SelkierOPβ€’2y ago
Alright πŸ™
MrMcyeet
MrMcyeetβ€’2y ago
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
Lunaiskey
Lunaiskeyβ€’2y ago
ufw is annoying
MrMcyeet
MrMcyeetβ€’2y ago
It can be, yeah
Selkier
SelkierOPβ€’2y ago
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?
MrMcyeet
MrMcyeetβ€’2y ago
- 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 server
Selkier
SelkierOPβ€’2y ago
How would I change the seed?
Snow Kit
Snow Kitβ€’2y ago
it’s an option in server.properties
Lunaiskey
Lunaiskeyβ€’2y ago
usually the seed automatically changes
MrMcyeet
MrMcyeetβ€’2y ago
server.properties file
Selkier
SelkierOPβ€’2y ago
πŸ‘ I'm a complete noob with the command line, I have no idea how to manage files or edit them through it at all πŸ˜…
Lunaiskey
Lunaiskeyβ€’2y ago
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
Selkier
SelkierOPβ€’2y ago
Yeah I'd want to set the seed
Snow Kit
Snow Kitβ€’2y ago
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
Selkier
SelkierOPβ€’2y ago
oh shit that sounds great
Lunaiskey
Lunaiskeyβ€’2y ago
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
Selkier
SelkierOPβ€’2y ago
πŸ‘
MrMcyeet
MrMcyeetβ€’2y ago
winscp or filezilla either one
Selkier
SelkierOPβ€’2y ago
Alr, ima try filezilla
Snow Kit
Snow Kitβ€’2y ago
FileZilla will let you, you just have to put sftp:// before the ip iirc
Selkier
SelkierOPβ€’2y ago
πŸ‘
Selkier
SelkierOPβ€’2y ago
FileZilla - The free FTP solution
FileZilla - The free FTP solution for both client and server. Filezilla is open source software distributed free of charge.
Selkier
SelkierOPβ€’2y ago
This is filezilla, correct?
MrMcyeet
MrMcyeetβ€’2y ago
yep
Selkier
SelkierOPβ€’2y ago
alr
Snow Kit
Snow Kitβ€’2y ago
I’ve honestly never seen that part of the ui in FileZilla before
MrMcyeet
MrMcyeetβ€’2y ago
if you click on the site manager button https://senpai.plz-choke.me/g8bWwh6z you can setup a bunch of connections
MrMcyeet
MrMcyeetβ€’2y ago
MrMcyeet
MrMcyeetβ€’2y ago
without retyping the password/host/port every time
Snow Kit
Snow Kitβ€’2y ago
Interesting. WinSCP just opens to a menu like that by default
Selkier
SelkierOPβ€’2y ago
Boom, got filezilla
Selkier
SelkierOPβ€’2y ago
πŸ™ So would the IP go under host? but then wtf should be there for password?
Snow Kit
Snow Kitβ€’2y ago
No ssh keys? :pensive_bread: Does oracle make you setup ssh keys for their vps’s?
Selkier
SelkierOPβ€’2y ago
Yes
Selkier
SelkierOPβ€’2y ago
Ty
MrMcyeet
MrMcyeetβ€’2y ago
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
Selkier
SelkierOPβ€’2y ago
Alr It's not connecting ;-;
MrMcyeet
MrMcyeetβ€’2y ago
what port are you using
Selkier
SelkierOPβ€’2y ago
25565
MrMcyeet
MrMcyeetβ€’2y ago
you dont ssh on that port thats the port your mc server is running on
Selkier
SelkierOPβ€’2y ago
ah-
MrMcyeet
MrMcyeetβ€’2y ago
use port 22
Selkier
SelkierOPβ€’2y ago
πŸ‘ ayyyy I'm in tysm
MrMcyeet
MrMcyeetβ€’2y ago
:dab:
Selkier
SelkierOPβ€’2y ago
πŸ™ So, seed is in server.properties to reset the world, just delete the world folder
MrMcyeet
MrMcyeetβ€’2y ago
Yeah, stop the server first
Selkier
SelkierOPβ€’2y ago
yup Is it possible for me to edit the file without bringing it back and forth?
MrMcyeet
MrMcyeetβ€’2y ago
wdym
Selkier
SelkierOPβ€’2y ago
Like directly opening the server.properties file via filezilla as oppposed to downloading it on my end, editing it, and then uploading it back
MrMcyeet
MrMcyeetβ€’2y ago
you could nano path/to/your/file.ext or just right click it in filezilla hit edit
Selkier
SelkierOPβ€’2y ago
Ah lmfao
MrMcyeet
MrMcyeetβ€’2y ago
then save it, and filezilla will offer to upload it automatically
Selkier
SelkierOPβ€’2y ago
I am blind! Well, thank you time to download all of the server-side mods and whatnot
fomo2
fomo2β€’2y ago
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 unreachable
Lunaiskey
Lunaiskeyβ€’2y ago
if your locked yourself out off ssh when setting up your firewall its possible to reaccess it ive done it before a couple times
fomo2
fomo2β€’2y ago
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

Did you find this page helpful?