Skip to content
Snippets Groups Projects
Commit 27254406 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

Add new file

parent ec19c4a6
No related branches found
No related tags found
No related merge requests found
howto.md 0 → 100644
# How to
## port forward
iptables:
```
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp --dport 11191 -j DNAT --to-destination 1.1.1.1:1111
iptables -A FORWARD -p tcp -d 1.1.1.1 --dport 1111 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
```
socat:
```
socat tcp-listen:444,fork,reuseaddr tcp:microsoft.com:443
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment