Ä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.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.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 - 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,30 +129,17 @@ 129 129 ))) 130 130 131 131 132 -(% style="color:#000000" %)Im n ächsten SchrittöffnenSie miteinemEditor IhrerWahl die//internet.conf//132 +(% style="color:#000000" %)Im Anschluß daran starten Sie die Firewall komplett neu, um die Regeln zu laden: 133 133 134 134 (% class="box" %) 135 135 ((( 136 -(% style="color:#000000" %)## nano /etc/logodidact/internet.conf##136 +(% style="color:#000000" %)##ldfirewall restart## 137 137 ))) 138 138 139 139 140 -(% style="color:#000000" %) Hierfügen Sienun denPort1636im Abschnitt//FromInternetAllowTCP// hinzu140 +==== (% style="color:#000000" %)Schritte am vorgeschalteten Router für den Internetzugriff(%%) ==== 141 141 142 -(% class="box" %) 143 -((( 144 -(% style="color:#000000" %)##FromInternetAllowTCP 1636## 145 -))) 146 146 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 - 156 156 (% 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: 157 157 158 158 [[image:1653294111427-417.png||class="img-thumbnail"]]