Advertisement
Daneoke

IPTables

Jul 2nd, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.59 KB | None | 0 0
  1. Chain INPUT (policy DROP 39 packets, 4818 bytes)
  2.  pkts bytes target     prot opt in     out     source               destination
  3.     0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           state INVALID
  4.     0     0 REJECT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:0x12/0x12 state NEW reject-with tcp-reset
  5.     0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:!0x17/0x02 state NEW
  6.     0     0 DROP       all  --  eth0   *       127.0.0.0/8          0.0.0.0/0  
  7.     0     0 DROP       all  --  eth0   *       169.254.0.0/16       0.0.0.0/0  
  8.     8  1099 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0  
  9.     0     0 ACCEPT     all  --  pptp+  *       0.0.0.0/0            0.0.0.0/0  
  10.     0     0 ACCEPT     all  --  tun+   *       0.0.0.0/0            0.0.0.0/0  
  11.     0     0 ACCEPT     all  --  eth1   *       0.0.0.0/0            0.0.0.0/0  
  12.     0     0 ACCEPT     icmp --  eth0   *       0.0.0.0/0            0.0.0.0/0           icmp type 0
  13.     0     0 ACCEPT     icmp --  eth0   *       0.0.0.0/0            0.0.0.0/0           icmp type 3
  14.     0     0 ACCEPT     icmp --  eth0   *       0.0.0.0/0            0.0.0.0/0           icmp type 8
  15.     0     0 ACCEPT     icmp --  eth0   *       0.0.0.0/0            0.0.0.0/0           icmp type 11
  16.     0     0 ACCEPT     udp  --  eth0   *       0.0.0.0/0            0.0.0.0/0           udp spt:67 dpt:68
  17.     0     0 ACCEPT     tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0           tcp spt:67 dpt:68
  18.     0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            192.168.2.10        tcp dpt:20
  19.     0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            192.168.2.10        tcp dpt:21
  20.     0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            192.168.2.10        tcp dpt:1863
  21.     0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            192.168.2.10        udp dpt:1194
  22.    52  3864 ACCEPT     tcp  --  *      *       0.0.0.0/0            192.168.2.10        tcp dpt:22
  23.     0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            192.168.2.10        tcp dpt:81
  24.     0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            192.168.2.10        tcp dpt:1723
  25.    36  3085 ACCEPT     udp  --  eth0   *       0.0.0.0/0            0.0.0.0/0           udp dpts:1024:65535 state RELATED,ESTABLISHED
  26.    16  4140 ACCEPT     tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0           tcp dpts:1024:65535 state RELATED,ESTABLISHED
  27.  
  28.  
  29. Chain OUTPUT (policy DROP 0 packets, 0 bytes)
  30.  pkts bytes target     prot opt in     out     source               destination
  31.    32  3333 ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0  
  32.     0     0 ACCEPT     all  --  *      pptp+   0.0.0.0/0            0.0.0.0/0  
  33.     0     0 ACCEPT     all  --  *      tun+    0.0.0.0/0            0.0.0.0/0  
  34.     0     0 ACCEPT     all  --  *      eth1    0.0.0.0/0            0.0.0.0/0  
  35.     0     0 ACCEPT     icmp --  *      eth0    0.0.0.0/0            0.0.0.0/0  
  36.     0     0 ACCEPT     udp  --  *      eth0    0.0.0.0/0            0.0.0.0/0           udp spt:68 dpt:67
  37.     0     0 ACCEPT     tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0           tcp spt:68 dpt:67
  38.     0     0 ACCEPT     tcp  --  *      eth0    192.168.2.10         0.0.0.0/0           tcp spt:20
  39.     0     0 ACCEPT     tcp  --  *      eth0    192.168.2.10         0.0.0.0/0           tcp spt:21
  40.     0     0 ACCEPT     tcp  --  *      eth0    192.168.2.10         0.0.0.0/0           tcp spt:1863
  41.    0     0 ACCEPT     udp  --  *      eth0    192.168.2.10         0.0.0.0/0           udp spt:1194
  42.   723 93448 ACCEPT     tcp  --  *      eth0    192.168.2.10         0.0.0.0/0           tcp spt:22
  43.  1476  974K ACCEPT     tcp  --  *      eth0    192.168.2.10         0.0.0.0/0           tcp spt:81
  44.     0     0 ACCEPT     47   --  *      eth0    192.168.2.10         0.0.0.0/0  
  45.     0     0 ACCEPT     tcp  --  *      eth0    192.168.2.10         0.0.0.0/0           tcp spt:1723
  46.   358 28808 ACCEPT     all  --  *      eth0    0.0.0.0/0            0.0.0.0/0  
  47.  
  48.  
  49. Chain FORWARD (policy DROP 0 packets, 0 bytes)
  50.  pkts bytes target     prot opt in     out     source               destination
  51.     0     0 l7-filter  all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
  52.     0     0 l7-filter  all  --  eth1   *       0.0.0.0/0            0.0.0.0/0  
  53.     0     0 l7-filter  all  --  pptp+  *       0.0.0.0/0            0.0.0.0/0  
  54.     0     0 l7-filter  all  --  tun+   *       0.0.0.0/0            0.0.0.0/0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement