Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IPTABLES script

Empfohlene Antworten

hi,

wie kann ich mit iptables port 80/443 (http und https) als server freigeben (also zugriff von außen (internet) auf nen server ins netzwerk)

und wie gehts wenn ich zugriff ins internet (http und https) freigeben will

folgendes hab ich bereits:

# Alle Regeln löschen

iptables -F

# Alles verbieten

iptables -P INPUT DROP

iptables -P OUTPUT DROP

iptables -P FORWARD DROP

# HTTP zulassen (Port 80)

iptables -A INPUT -p tcp --sport 80 --dport 1024: -j ACCEPT

iptables -A OUTPUT -p tcp --sport 1024: --dport 80 -j ACCEPT

laufen die Dienste auf dem selben Rechner wie iptables?

Falls nicht brauchst du erstmal ein Portforwarding auf den Server.

Angenommen der Server hat die IP 192.168.1.5

Dein WAN-Interface ist eth1 und dein LAN-Internface eth0

iptables -t nat -A PREROUTING -i eth1 - p tcp --dport 80 -j DNAT --to 192.168.1.5

iptables -A FORWARD -i eth1 -p tcp --dport 80 -d 192.168.1.5 -j ACCEPT

iptables -t nat -A PREROUTING -i eth1 - p tcp --dport 443 -j DNAT --to 192.168.1.5

iptables -A FORWARD -i eth1 -p tcp --dport 443 -d 192.168.1.5 -j ACCEPT

Ausgehendes NAT (bzw eigentlich PAT) sollte natürlich auch laufen.

iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE

iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT

sollte genüge, wenn ich mich nicht total verhaun hab ;)

ggfs poste dann nochmal deine komplette Firewall.

Gruß

David

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.