Hozzászólások
Sziasztok.
Szenvedek a port forwarddal, de nem megy valamiért. Itt az iptables scriptem.
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 1433 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -s 10.252.32.0/24 -j SNAT --to-source 195.228.99.249
iptables -t nat -A PREROUTING -i eth1 -p tcp -d 195.228.99.249 --destination-port 1433 -j DNAT --to-destination 10.252.32.243
iptables -t nat -A PREROUTING -i eth1 -p udp -d 195.228.99.249 --destination-port 1433 -j DNAT --to-destination 10.252.32.243
Hol lehet a hiba, ha egy távoli nmap gilterednek mondja a portot?
- A hozzászóláshoz be kell jelentkezni
echo "1" > /proc/sys/net/ipv4/ip_forward
# portforward mondjuk a 192.168.10.13-as gep 110-es portjara
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 110 --syn -j DNAT --to-destination 192.168.10.13
- A hozzászóláshoz be kell jelentkezni