George Tolea wrote:
root@server# cat firewall
echo "1">/proc/sys/net/ipv4/ip_forward
IPTABLES=/sbin/iptables
SS=a.b.c.d
DD=x.y.z.v
$IPTABLES -t nat -F $IPTABLES -F
$IPTABLES -v -t nat -A POSTROUTING -s 192.168.10.0/24 -d 0/0 -j MASQUERADE#iptables -I FORWARD -p tcp --dport 80 -j LOG
$IPTABLES -v -t nat -A PREROUTING -p tcp -s $SS -d $DD --dport 80 -j DNAT --to-destination 192.168.10.45:80
Cu toate astea cand incerc de la ip-ul a.b.c.d ...telnet x.y.z.v 80 ...ramane la Trying x.y.z.v ...si dupa un timp da Connection timed out...
Ce anume nu este corect?
Ce imi scapa ...?
#tail -f /var/log/messages
--
Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
