Änderungen von Dokument Samba4 Verzeichnisdienst direkt im Internet freigeben (ohne Stream via rev-proxy)
Zuletzt geändert von Jonas Mayer am 2022/05/23 10:48
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -79,13 +79,13 @@ 79 79 # ~-~-~-~-~-~-- 80 80 # Beispiele: 81 81 # * BelWue-Moodle-Server IPs: 129.143.69.1 129.143.232.18 129.143.255.2 82 - # * Webuntis Server in Österreich IP: 213.208.138.146##(%%) 83 -(% style="color:#e74c3c" %) ##SOURCEIP="129.143.69.1 129.143.232.18 129.143.255.282 + # * Webuntis Server in Österreich IP: 213.208.138.146##(%%)## 83 +(% style="color:#e74c3c" %) SOURCEIP="129.143.69.1 129.143.232.18 129.143.255.2 213.208.138.146" 84 84 IP_LOGOSRV_DMZ=172.28.29.2 85 - IP_SAMBA4_SERVERNET=172.28.28.30 ##(%%)85 + IP_SAMBA4_SERVERNET=172.28.28.30(%%)## 86 86 \\(% style="color:#e67e22" %)## for ipaddr in $SOURCEIP 87 87 do 88 - echo -n "Adding custom rules to allow ldaps connections (tcp/1636) from host '${ipaddr}' and redirect to 'samba4-ad:636'... " 88 + echo -n "Adding custom rules to allow ldaps connections (tcp/1636) from host '${ipaddr}' and redirect to 'samba4-ad:636'... " 89 89 $ipt -t nat -I PREROUTING -i dmz -p tcp -s ${ipaddr} -d ${IP_LOGOSRV_DMZ} ~-~-dport 1636 -j DNAT ~-~-to-destination ${IP_SAMBA4_SERVERNET}:636 90 90 $ipt -t mangle -I mf_internet_cp -p tcp -s ${ipaddr} -d ${IP_LOGOSRV_DMZ} ~-~-dport 1636 -g mark_from_internet_allowed 91 91 echo "OK" ... ... @@ -129,17 +129,30 @@ 129 129 ))) 130 130 131 131 132 -(% style="color:#000000" %)Im Anschluß daranstarten SiedieFirewallkomplettneu, um dieRegelnzu laden:132 +(% style="color:#000000" %)Im nächsten Schritt öffnen Sie mit einem Editor Ihrer Wahl die //internet.conf// 133 133 134 134 (% class="box" %) 135 135 ((( 136 -(% style="color:#000000" %)##ld firewallrestart##136 +(% style="color:#000000" %)##nano /etc/logodidact/internet.conf## 137 137 ))) 138 138 139 139 140 - ====(% style="color:#000000" %)Schritteam vorgeschaltetenRouterfürden Internetzugriff(%%) ====140 +(% style="color:#000000" %)Hier fügen Sie nun den Port 1636 im Abschnitt //FromInternetAllowTCP// hinzu 141 141 142 +(% class="box" %) 143 +((( 144 +(% style="color:#000000" %)##FromInternetAllowTCP 1636## 145 +))) 142 142 147 + 148 +(% style="color:#000000" %)Im Anschluß daran starten Sie die Firewall neu 149 + 150 +(% class="box" %) 151 +((( 152 +(% style="color:#000000" %)##ldfirewall restart## 153 +))) 154 + 155 + 143 143 (% style="color:#000000" %)Damit die Freigabe des Samba4-LDAP im Internet funktioniert, ist es außerdem noch wichtig, die Portfreigabe (TCP-Port 636) am vorgeschalteten Router zum LogoDIDACT Server hinzuzufügen: 144 144 145 145 [[image:1653294111427-417.png||class="img-thumbnail"]]