[linux-l] Iptables -> Portforwarding an andere Ports

Sebastian Andres sebastian at sebastianandres.de
Fr Jul 5 16:23:18 CEST 2013


du hast natürlich recht - danke! manchmal sieht man den Wald vor
bäumen nicht :-)


On Fri, Jul 05, 2013 at 03:42:41PM +0200, Hauke Laging wrote:
> Am Fr 05.07.2013, 15:12:48 schrieb Sebastian Andres:
> 
> > iptables -A FORWARD -p tcp --dport 443 -i eth0 -d 192.168.2.3 -j ACCEPT
> > 
> > Leider funktioniert das so nicht.
> 
> Klar, das ist ja auch der falsche Port. In dem Moment, in dem FORWARD erreicht 
> wird, ist 8443 der destination port.
> 
> Eine andere Möglichkeit wäre:
> 
> iptables -A FORWARD -m conntrack --ctstate DNAT -j ACCEPT
> 
> 
> CU
> 
> Hauke
> -- 
> Crypto für alle: http://www.openpgp-schulungen.de/fuer/bekannte/
> OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5



> _______________________________________________
> linux-l mailing list
> linux-l at mlists.in-berlin.de
> Die Mailingliste der BeLUG (Berliner Linux User Group)
> 
> Wenn du diese Mailingliste  abbestellen willst, gehe bitte auf
> https://mlists.in-berlin.de/mailman/listinfo/linux-l-mlists.in-berlin.de
> und trage dich dort bitte aus


-- 
Sebastian Andres      mail: <sebastian at sebastianandres.de>
Quellweg 56, 13629 Berlin Web: http://www.sebastianandres.de
home:+49-30-89561674
cell:+49-170-3224.773  pgp: http://www.sebastianandres.de/key.txt
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 198 bytes
Beschreibung: Digital signature
URL         : <https://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/attachments/20130705/d41b9125/attachment.sig>


Mehr Informationen über die Mailingliste linux-l