Go Down

Topic: OT: just ordered a hard-drive for my 1U server (Read 6826 times) previous topic - next topic

travis_farmer

i added this:
Code: [Select]
-A IN_public_allow -p tcp -m tcp --dport 10000 -m conntrack --ctstate NEW -j ACCEPT

and made some progress. it allows me in under http, but tells me the server is in SSL mode. i try https, and the server does not respond.

but it looks like iptables is blocking me, but it isn't allowing me to stop iptables...

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

msssltd

#46
Mar 02, 2017, 07:37 pm Last Edit: Mar 02, 2017, 07:38 pm by MattS-UK
That is the default rule set.  If you have stopped the firewall, the rules are not loaded.


Try
netstat -nlvp4
See if there is anything listening on 10000.


Check selinux policy and disable enforcement temporarily
yum install policycoreutils -y
sestatus
setenforce 0


Probably selinux

travis_farmer

Quote
Try
netstat -nlvp4
See if there is anything listening on 10000.
netstat: command not found

Quote
Check selinux policy and disable enforcement temporarily
yum install policycoreutils -y
sestatus
setenforce 0
Code: [Select]

[root@blah etc]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[root@blah etc]# setenforce 0
[root@blah etc]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28


browser:
Quote
This site can't be reached

*.*.*.* unexpectedly closed the connection.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_CLOSED
~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

travis_farmer

on a hunch, i changed webmin from SSL to plain http, and it works, sort of.

via yum, i added MySQL, and Apache, but they don't seem to be connected correctly. webmin doesn't even pick them up right.

at the risk of killing what i have gained, i am going to try the bigger DVD iso of CentOS, and see if it has pre setup options for apache, php, and MySQL. at least i think i can remember what i had to do to get where i am.

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

msssltd

The DVD contains the same packages as yum downloads, except the DVD packages may not be the latest release.  Webmin is an aide memoire, not a GUI.  Applications do not come pre-configured like a Windows desktop.  The best way to work is step by step, doing one thing At a time, and getting it right, before moving on.  I realise this could be a challenge for you but If you don't work methodically you will tie yourself in a knot.

Webmin, network, firewall, perl modules, mysql, php, Apache. Is the order I have settled on.


travis_farmer

umm, sorry, i already did the DVD thing. *sigh* ok, after i get webmin back up, i will do my best to follow directions (not really one of my strong points).

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

travis_farmer

this is different...

Code: [Select]

Downloading packages:
webmin-1.831-1.noarch.rpm      FAILED                                                                                                 ]  0.0 B/s |    0 B  --:--:-- ETA
http://download.webmin.com/download/yum/webmin-1.831-1.noarch.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=webmin clean metadata
Trying other mirror.


Error downloading packages:
  webmin-1.831-1.noarch: [Errno 256] No more mirrors to try.



i tried "yum --enablerepo=webmin clean metadata", and tried again, same thing.

what do you suppose would cause that?

karma for not following directions?

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

travis_farmer

ok, i am back to where i was, webmin is up :D

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

msssltd

Getting late over here.  Will take a look in the morning

travis_farmer

ok, thank you very much for your help so far. :D

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

Chagrin

Try
netstat -nlvp4
Don't forget he's using CentOS 7. All the perfectly good network utilities we'd been using for the past umpteen years have now being replaced and are no longer default.

Stupid jerks. :(

msssltd

#56
Mar 03, 2017, 12:15 pm Last Edit: Mar 03, 2017, 12:15 pm by MattS-UK
Good point Chagrin

I tend to forget the things I do on autopilot
yum whatprovides netstat
yum install net-tools -y

Travis.  If I can persuade you to blow away what you have done and start again with a clean install of CentOS minimal,  I have a web server to prepare for a customer so we could go through it step by step.



travis_farmer

Travis.  If I can persuade you to blow away what you have done and start again with a clean install of CentOS minimal,  I have a web server to prepare for a customer so we could go through it step by step.



:o  :o  :o

dang, i just got webmin working again!

it will have to be after work, hopefully you are still available then. it will be about 15:00EST when i get out.

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

travis_farmer

ok, i just got out of work, if you are around. (got out early)

i just have to reload the server, again.

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

travis_farmer

ok, server is fresh, ready, and waiting. and i have logged into SSH to verify that it works, and have done nothing else. (this really is killing me, just so you know ;) )

~Travis
My GitHub: https://github.com/travisfarmer?tab=repositories
My website is where i organize my thoughts and ideas. feel free to visit it (http://tjfserver.ddns.net/).
My Radio Station: http://travisfarmer.caster.fm/ (if i am on-air)

Go Up