# ping www.wp.pl
PING www.wp.pl (212.77.100.101) 56(84) bytes of data.
64 bytes from www.wp.pl (212.77.100.101): icmp_seq=1 ttl=119 time=88.1 ms
64 bytes from www.wp.pl (212.77.100.101): icmp_seq=2 ttl=119 time=81.1 ms
64 bytes from www.wp.pl (212.77.100.101): icmp_seq=3 ttl=119 time=91.8 ms
64 bytes from www.wp.pl (212.77.100.101): icmp_seq=4 ttl=119 time=90.2 ms
64 bytes from www.wp.pl (212.77.100.101): icmp_seq=5 ttl=119 time=94.2 ms
# ps -A
PID TTY TIME CMD
1 ? 00:00:08 init
2 ? 00:00:00 keventd
3 ? 00:00:00 kapmd
4 ? 00:00:00 ksoftirqd_CPU0
5 ? 00:00:00 kswapd
6 ? 00:00:00 bdflush
7 ? 00:00:00 kupdated
8 ? 00:00:00 xfsbufd
9 ? 00:00:00 xfslogd/0
10 ? 00:00:00 xfsdatad/0
14 ? 00:00:00 mdrecoveryd
15 ? 00:00:20 kjournald
134 ? 00:00:00 syslogd
147 ? 00:00:00 klogd
160 ? 00:00:00 crond
175 ? 00:00:00 sshd
223 ? 00:00:00 pppoe-connect
248 ? 00:00:00 pppd
254 ? 00:00:09 pppoe
321 ? 00:00:00 niceshaper
346 ? 00:00:00 dhcpd
361 ? 00:00:00 thttpd
375 ? 00:00:00 proftpd
388 ? 00:00:00 ez-ipupdate
400 tty1 00:00:00 login
401 tty2 00:00:00 agetty
402 tty3 00:00:00 agetty
403 tty4 00:00:00 agetty
404 tty5 00:00:00 agetty
405 tty6 00:00:00 agetty
406 tty10 00:00:00 agetty
417 tty1 00:00:00 bash
420 tty1 00:00:00 su
423 tty1 00:00:00 bash
1243 tty1 00:00:00 ping
1283 tty1 00:00:00 ping
2566 tty1 00:00:00 ping
2275 ? 00:00:00 sshd
2281 ? 00:00:00 sshd
2282 pts/2 00:00:00 bash
2283 pts/2 00:00:00 su
2288 pts/2 00:00:00 bash
2647 pts/2 00:00:00 ping
2694 pts/2 00:00:00 ps
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:AC:39:43:34
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44948 errors:0 dropped:0 overruns:0 frame:0
TX packets:40339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4449127 (4.2 Mb) TX bytes:3631050 (3.4 Mb)
Interrupt:15
eth1 Link encap:Ethernet HWaddr 00:0E:2E:B9:67:7D
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2327 errors:0 dropped:0 overruns:0 frame:0
TX packets:2484 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:180024 (175.8 Kb) TX bytes:904188 (882.9 Kb)
Interrupt:11 Base address:0x9f00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:245 errors:0 dropped:0 overruns:0 frame:0
TX packets:245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28398 (27.7 Kb) TX bytes:28398 (27.7 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:62.87.191.207 P-t-P:62.87.191.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:37026 errors:0 dropped:0 overruns:0 frame:0
TX packets:32399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3159172 (3.0 Mb) TX bytes:2680016 (2.5 Mb)
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.87.191.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 62.87.191.1 0.0.0.0 UG 0 0 0 ppp0
# iptables -L -nv
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
245 28398 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
5985 321K DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,445
0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:113 reject-with icmp-port-unreachable
2 104 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:1080 reject-with icmp-port-unreachable
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:143
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:993
113 7096 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 8 limit: avg 1/sec burst 5
33071 2917K ACCEPT all -- !eth0 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:16000
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:15000
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3003
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,445
219 13729 ACCEPT all -- !eth0 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 35166 packets, 3602K bytes)
pkts bytes target prot opt in out source destination
# iptables -L -nv
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
245 28398 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
5985 321K DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,445
0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:113 reject-with icmp-port-unreachable
2 104 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:1080 reject-with icmp-port-unreachable
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:143
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:993
113 7096 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 8 limit: avg 1/sec burst 5
33071 2917K ACCEPT all -- !eth0 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:16000
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:15000
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3003
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,445
219 13729 ACCEPT all -- !eth0 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 35166 packets, 3602K bytes)
pkts bytes target prot opt in out source destination
# iptables -t nat -L -nv
Chain PREROUTING (policy ACCEPT 15723 packets, 1025K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 1234 packets, 88251 bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- * eth0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 1230 packets, 88020 bytes)
pkts bytes target prot opt in out source destination