Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

iptables localhost redirection

sudo iptables -t nat -A PREROUTING -p tcp -m tcp -s 192.168.4.0/24 --dport 80 -j DNAT --to-destination 192.168.2.4

sudo iptables -t nat -A PREROUTING -p tcp -m tcp -s 192.168.4.0/24 --dport 443 -j DNAT --to-destination 192.168.2.4
Comment

iptables localhost redirection

 sudo iptables -t nat -A PREROUTING -p tcp -m multiport --dports 443,80 -j DNAT --to-destination 192.168.2.4:80


 iptables -t nat -A POSTROUTING -j MASQUERADE
Comment

PREVIOUS NEXT
Code Example
Shell :: ctags .virmc 
Shell :: Could not refresh actions for navigator org.jenkinsci.plugin.gitea.GiteaSCMNavigator@69ec289c org.jenkinsci.plugin.gitea.client.api.GiteaHttpStatusException: HTTP 404/Not Found 
Shell :: how to scp without one file type 
Shell :: How can I become the owner of a file/folder that root owns? 
Shell :: node execute local bin 
Shell :: awk environment variable 
Shell :: Add Repote into local existing Repostry 
Shell :: pattern matching alias linux 
Shell :: bios update dual boot no option to select os 
Shell :: install-lamp-stack-ubuntu-20-04-server-desktop 
Shell :: --force-badname 
Shell :: connecting to timescaledb from terminal 
Shell :: iterm full screen cmd 
Shell :: como instalar ext-mbstring en ubuntu 18.04 
Shell :: boundEastLongitude: -74.18249700000001 
Shell :: shell get location of function 
Shell :: system reported a problem ubuntu 
Shell :: where to find the zipped folder from google drive in ubuntu 
Shell :: linux fine .js files 
Shell :: ubuntu ssh connect to server 
Shell :: join 2 files linux 
Shell :: setting and changing a project 
Shell :: minecraft skript every 1 second 
Shell :: kernel does not boot 5.13.0-23-generic 
Shell :: Delete the executing batch file 
Shell :: imagem para pdf linux 
Shell :: mac run a shell script 
Shell :: nanostation m5 username password 
Shell :: what is installation testing 
Shell :: linx command to enable web security in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =