Skip to content
  • Home
  • SteamDeck
  • Linux
  • SQL-Server
  • PowerShell
  • Oracle
Schelstraete.orgSchelstraete.org
SCHELSTRAETE.ORG

I.T. minded

  • Home
  • SteamDeck
  • Linux
  • SQL-Server
  • PowerShell
  • Oracle
LinkedIn Email
Schelstraete.orgSchelstraete.org
SCHELSTRAETE.ORG

I.T. minded

Iptables: redirect port to other IP – port

  • BartBart
  • November 20, 2017
  • Linux

You can use the following shell commands in order to redirect a port to another port.

PORT_FROM=443 
PORT_TO=443 
DEST=10.33.35.110 
iptables -t nat -A PREROUTING -p tcp --dport $PORT_FROM -j DNAT --to $DEST:$PORT_TO 
iptables -t nat -A POSTROUTING -p tcp -d $DEST --dport $PORT_TO -j MASQUERADE
Share your love
Bart
Bart
Articles: 100
T-SQL-Commands
Previous Post Linux: simulate memory usage
Next Post T-SQL: Kill all connections to a specific database
T-SQL-Commands
No results

Recent Posts

  • Steam Deck: Hogwarts Legacy performance
  • T-SQL: Check cpu usage SQL statements
  • Steam Deck: Transfer files from Windows to Deck
  • PowerShell: Check TLS version
  • T-SQL: Identify queries that consume a large amount of log space

Archives

  • February 2023
  • December 2022
  • January 2022
  • December 2021
  • October 2021
  • September 2021
  • July 2020
  • March 2020
  • February 2020
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • February 2019
  • November 2017
  • August 2017
  • July 2017
  • June 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016

Categories

  • Avamar
  • General
  • Ispconfig
  • Linux
  • Oracle
  • PowerShell
  • SAP Hana
  • SQL-Server
  • SteamDeck
  • Uncategorized
Related Articles

Linux: create MO files from PO files (wp)

  • Bart
  • January 24, 2022

Linux: migrate storage with pvmove

  • Bart
  • January 21, 2022

Systemd: automatically restart after failure

  • Bart
  • January 18, 2022

Copyright © 2023 Schelstraete.org

Add Schelstraete.org as app.

ADD