Enviado em 21/03/2020 - 12:46h
Como é meu primeiro tópico gostaria de me apresentar:root@debian-s-1vcpu-1gb-nyc1-01:/etc/openvpn# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 68.183.16.1 0.0.0.0 UG 0 0 0 eth0
10.10.0.0 * 255.255.0.0 U 0 0 0 eth0
10.136.0.0 * 255.255.0.0 U 0 0 0 eth1
68.183.16.0 * 255.255.240.0 U 0 0 0 eth0
192.168.254.0 192.168.254.2 255.255.255.0 UG 0 0 0 tun0
192.168.254.2 * 255.255.255.255 UH 0 0 0 tun0
#!/bin/bash
# Flushing all rules
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -t nat -A PREROUTING -s 0/0 -m tcp -p tcp --dport 3300 -j DNAT --to-destination 68.183.26.221:3389 #Este redirecionamento funciona bem.
iptables -t nat -A PREROUTING -s 0/0 -m tcp -p tcp --dport 3389 -j DNAT --to-destination 192.168.254.10:3389 #Este não funciona :(
iptables -I INPUT 1 -p tcp --match multiport --port 3300,3389 -j ACCEPT
iptables -I INPUT 2 -p udp --match multiport --port 3300,3389 -j ACCEPT
iptables -I OUTPUT 1 -p tcp --match multiport --port 3300,3389 -j ACCEPT
iptables -I OUTPUT 2 -p udp --match multiport --port 3300,3389 -j ACCEPT
echo "1" > /proc/sys/net/ipv4/conf/eth0/accept_redirects
echo "1" > /proc/sys/net/ipv4/conf/eth0/forwarding
echo "1" > /proc/sys/net/ipv4/conf/tun0/accept_redirects
echo "1" > /proc/sys/net/ipv4/conf/tun0/forwarding
echo "1" > /proc/sys/net/ipv4/conf/all/accept_redirects
echo "1" > /proc/sys/net/ipv4/conf/all/forwarding
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie
Meu Amigo não consegue entrar em meu mundo, via tailscale, hamachi e z... (1)
Erro ao fazer remaster usando Penguin eggs (1)
Warcraft II Remastered no Linux? (0)
queria saber como instalar o android power tools igual ao winux no lin... (7)