Categories: Uncategorized

Iptables speciális IPről speciális port-ra forwardolás

Tesztelt / Tested:

Source interface: eno1
Target IP: 192.168.100.40

Source Port: 922
Target port: 22

iptables -A PREROUTING -i eno1 -p tcp -m tcp --dport 922 -j DNAT --to-destination 192.168.100.40:22
iptables -A FORWARD -d 192.168.100.40/32 -p tcp -m tcp --dport 922 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT

 

NEM TESZTELT! / NOT TESTED!

iptables -t nat -A PREROUTING -s <DPX_IP> -p tcp --dport 80 -j DNAT --to-destination <VPS_IP>:8888
iptables -t nat -A POSTROUTING -s <VPS_IP> -p tcp --dport 8888 -j DNAT --to-destination <DPX_IP>:80

 

ronhks

Recent Posts

Mac TimeMachine drive on Samba share

First, create a Samba share on the easiest way. For example, mine: [macbook-pro-14] path =…

2 years ago

oh-my-zsh p10k git branch name shortened

I use this and I experiened like this: The branch name is shortened and can't…

2 years ago

Intellij IDEA Golang own package problem

I really like IDEA for developing. I worked on a golang project and I organised…

2 years ago

Run MiniDLNA from docker

For reusage: docker run -d \-p 8200:8200 \--restart=on-failure:3 \--name minidlna \-v /opt/minidlna/cache:/minidlna/cache \-v /mnt/data/series:/media/series \-v…

2 years ago

Docker img ipv6 problem

On my host the ipv6 is disabled. I had to start a docker image, which…

3 years ago

Gentoo USB serial passthrough KVM

I have a Conbee II Zigbee receiver. After a restart the USB passthrought stopped working…

3 years ago

This website uses cookies.