Dit topic lijkt een beetje op deze: [CentOS7] httpd/sshd niet te bereiken ondanks disabled fw
Ware het niet dat er een paar cruciale zaken anders zijn.
Nieuwe installatie van CentOS7 op Hyper-V 2012R2 LIS 4.0.11 geinstalleerd.
1. IPSEC tunnel tussen 2 routers op locaties
2. Andere services (Apache e.d. zijn gewoon bereikbaar)
3. SELinux staat uit
4. Firewall staat uit
5. Hosts.deny en Hosts.allow zijn leeg
6. SSHD op andere poort dan 22 draaien = werkende connectie
7. routes staan correct. Static routes aangemaakt voor de zekerheid, geen verschil.
8. logs geven niks (messages, secure)
Internet, werkt
Ping, werkt
Apache server, werkt
SSHD (OpenSSH) niet.
Doe ik een nc -l 0.0.0.0 9876 en probeer vanaf een machine in het remote subnet de sessie op te bouwen, komt er niets in beeld na het random karakter meppen.
Wireshark, geeft niets aan. Verkeer komt niet aan.
router firewall staat helemaal open voor verkeer van en naar tunnel adressen local en remote.
Vanaf CENTOS 7 machine kan ik naar een andere machine in het remote subnet connecten.
van de andere machine naar de CENTOS 7 machine, gaat het pas zodra ik openSSH op iets anders dan 22 laat luisteren.
Wat mis ik toch steeds
Iemand nog een goed idee?
sshd_config file:
Ware het niet dat er een paar cruciale zaken anders zijn.
Nieuwe installatie van CentOS7 op Hyper-V 2012R2 LIS 4.0.11 geinstalleerd.
1. IPSEC tunnel tussen 2 routers op locaties
2. Andere services (Apache e.d. zijn gewoon bereikbaar)
3. SELinux staat uit
4. Firewall staat uit
5. Hosts.deny en Hosts.allow zijn leeg
6. SSHD op andere poort dan 22 draaien = werkende connectie
7. routes staan correct. Static routes aangemaakt voor de zekerheid, geen verschil.
8. logs geven niks (messages, secure)
Internet, werkt
Ping, werkt
Apache server, werkt
SSHD (OpenSSH) niet.
Doe ik een nc -l 0.0.0.0 9876 en probeer vanaf een machine in het remote subnet de sessie op te bouwen, komt er niets in beeld na het random karakter meppen.
Wireshark, geeft niets aan. Verkeer komt niet aan.
router firewall staat helemaal open voor verkeer van en naar tunnel adressen local en remote.
Vanaf CENTOS 7 machine kan ik naar een andere machine in het remote subnet connecten.
van de andere machine naar de CENTOS 7 machine, gaat het pas zodra ik openSSH op iets anders dan 22 laat luisteren.
Wat mis ik toch steeds


Iemand nog een goed idee?
sshd_config file:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
| # $OpenBSD: sshd_config,v 1.93 2014/01/10 05:59:19 djm Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/local/bin:/usr/bin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options override the # default value. # If you want to change the port on a SELinux system, you have to tell # SELinux about this change. # semanage port -a -t ssh_port_t -p tcp #PORTNUMBER # Port 22 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: # The default requires explicit activation of protocol 1 #Protocol 2 # HostKey for protocol version 1 #HostKey /etc/ssh/ssh_host_key # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key #HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 1h #ServerKeyBits 1024 # Ciphers and keying #RekeyLimit default none # Logging # obsoletes QuietMode and FascistLogging #SyslogFacility AUTH SyslogFacility AUTHPRIV LogLevel VERBOSE # Authentication: #LoginGraceTime 2m PermitRootLogin no #StrictModes yes #MaxAuthTries 6 #MaxSessions 10 #RSAAuthentication yes #PubkeyAuthentication yes # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 # but this is overridden so installations will only check .ssh/authorized_keys AuthorizedKeysFile .ssh/authorized_keys #AuthorizedPrincipalsFile none #AuthorizedKeysCommand none #AuthorizedKeysCommandUser nobody # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts #RhostsRSAAuthentication no # similar for protocol version 2 #HostbasedAuthentication no # Change to yes if you don't trust ~/.ssh/known_hosts for # RhostsRSAAuthentication and HostbasedAuthentication #IgnoreUserKnownHosts no # Don't read the user's ~/.rhosts and ~/.shosts files #IgnoreRhosts yes # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication yes #PermitEmptyPasswords no PasswordAuthentication yes # Change to no to disable s/key passwords #ChallengeResponseAuthentication yes ChallengeResponseAuthentication no # Kerberos options #KerberosAuthentication no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes #KerberosGetAFSToken no #KerberosUseKuserok yes # GSSAPI options GSSAPIAuthentication yes GSSAPICleanupCredentials no #GSSAPIStrictAcceptorCheck yes #GSSAPIKeyExchange no #GSSAPIEnablek5users no # Set this to 'yes' to enable PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will # be allowed through the ChallengeResponseAuthentication and # PasswordAuthentication. Depending on your PAM configuration, # PAM authentication via ChallengeResponseAuthentication may bypass # the setting of "PermitRootLogin without-password". # If you just want the PAM account and session checks to run without # PAM authentication, then enable this but set PasswordAuthentication # and ChallengeResponseAuthentication to 'no'. # WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several # problems. UsePAM yes #AllowAgentForwarding yes #AllowTcpForwarding yes #GatewayPorts no X11Forwarding yes #X11DisplayOffset 10 #X11UseLocalhost yes #PermitTTY yes #PrintMotd yes #PrintLastLog yes #TCPKeepAlive yes #UseLogin no UsePrivilegeSeparation sandbox # Default for new installations. #PermitUserEnvironment no #Compression delayed #ClientAliveInterval 0 #ClientAliveCountMax 3 #ShowPatchLevel no #UseDNS yes #PidFile /var/run/sshd.pid #MaxStartups 10:30:100 #PermitTunnel no #ChrootDirectory none #VersionAddendum none # no default banner path #Banner none # Accept locale-related environment variables AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS # override default of no subsystems Subsystem sftp /usr/libexec/openssh/sftp-server # Example of overriding settings on a per-user basis #Match User anoncvs # X11Forwarding no # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server |
[ Voor 40% gewijzigd door RoRoo op 07-09-2015 17:04 ]
It's not DNS. There's no way it's DNS. It was DNS. --The Sysadmin haiku