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.

prerouting :-)

Empfohlene Antworten

Veröffentlicht

Hallo, hab folgendes mal versucht, funktioniert aber nicht. Auf $IN_HOST2 hab ich nen Webserver den möchte ich auf den Port 1112 der Firewall weiterrouten... Ich mache bestimmt was falsch :-)

Gruß

debitux

<code>

#!/bin/sh

IPTABLES=/sbin/iptables

OUT_DEV=ppp0

IN_HOST2=192.168.0.10

insmod ip_tables

insmod ip_conntrack

insmod iptable_nat

insmod ipt_MASQUERADE

$IPTABLES -t nat -A POSTROUTING -o $OUT_DEV -j MASQUERADE

$IPTABLES -t nat -A PREROUTING -i $OUT_DEV -p tcp --dport 1112 -j DNAT --to-dest $IN_HOST2:80

$IPTABLES -A FORWARD -i $OUT_DEV -p tcp --dport 1112 -d $IN_HOST2 -j ACCEPT

$IPTABLES -A FORWARD -i $OUT_DEV -p tcp --sport 80 -d $IN_HOST2 -j ACCEPT

# $IPTABLES -A FORWARD -j ACCEPT

# $IPTABLES -A INPUT -j ACCEPT

# $IPTABLES -A OUTPUT -j ACCEPT

</code>

Morgen,

ich forwarde bei mir momentan auch einige Ports, dazu reicht eigentlich diese eine Zeile (in diesem Fall für vnc) :

iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 5900 -j DNAT --to 192.168.100.2

Die FORWARDING Regeln sind bei mir nicht notwendig.

Gruß

Terran Marine

So klappts auch bei mir, aber auch nur wenn ich den Port nicht weiterleite... Wenn ich aber den Port weiter leiten will (...--dport 1112 ....-j DNAT --to 192.168.0.10:80) klappts nicht... :-(

Wie kann ich Ports forwarden...

Hat jetzt geklappt. Hab mir neuere Kernel Quellen gezogen und die module neu übersetzt... :-) geile Sache mit dem prerouting :-D

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.