guilmar
(usa Outra)
Enviado em 20/05/2011 - 15:49h
gateway:/etc/squid/regras> dig @172.16.32.5
www.kernel.org
; <<>> DiG 9.3.4-P1 <<>> @172.16.32.5
www.kernel.org
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37209
;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;
www.kernel.org. IN A
;; ANSWER SECTION:
www.kernel.org. 599 IN CNAME
www.geo.kernel.org.
www.geo.kernel.org. 599 IN CNAME pub.geo.kernel.org.
pub.geo.kernel.org. 599 IN CNAME pub.all.kernel.org.
pub.all.kernel.org. 599 IN A 130.239.17.5
pub.all.kernel.org. 599 IN A 149.20.4.69
pub.all.kernel.org. 599 IN A 149.20.20.133
pub.all.kernel.org. 599 IN A 199.6.1.165
;; Query time: 811 msec
;; SERVER: 172.16.32.5#53(172.16.32.5)
;; WHEN: Fri May 20 15:48:57 2011
;; MSG SIZE rcvd: 158
gateway:/etc/squid/regras>
gateway:/etc/squid/regras> iptables -t nat -L -nv
Chain PREROUTING (policy ACCEPT 123 packets, 50649 bytes)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 189.19.219.41 [MEU IP] tcp dpt:3389 to:172.16.32.4:3389
0 0 DNAT tcp -- * * 189.19.219.41 [MEU IP] tcp dpt:1433 to:172.16.32.4:1433
0 0 DNAT tcp -- * * 189.14.200.67 [MEU IP] tcp dpt:3389 to:172.16.32.4:3389
0 0 DNAT tcp -- * * 189.14.200.67 [MEU IP] tcp dpt:1433 to:172.16.32.4:1433
0 0 DNAT tcp -- * * 187.36.139.199 [MEU IP] tcp dpt:3389 to:172.16.32.50:3389
0 0 DNAT tcp -- * * 187.36.139.199 [MEU IP] tcp dpt:1433 to:172.16.32.50:1433
22 6760 REDIRECT tcp -- eth1 * 172.16.32.0/24 0.0.0.0/0 tcp dpt:80 redir ports 3128
Chain POSTROUTING (policy ACCEPT 14 packets, 1165 bytes)
pkts bytes target prot opt in out source destination
49 9284 MASQUERADE all -- * eth0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 33 packets, 8581 bytes)
pkts bytes target prot opt in out source destination
gateway:/etc/squid/regras>