Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

tim
Sunday, September 16th, 2012 at 6:39:02pm UTC 

  1. Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic-pae i686)
  2.  
  3.  * Documentation:  https://help.ubuntu.com/
  4.  
  5.   System information as of Sun Sep 16 18:05:39 SAST 2012
  6.  
  7.   System load:  0.12              Processes:           63
  8.   Usage of /:   2.9% of 72.97GB   Users logged in:     0
  9.   Memory usage: 1%                IP address for eth0: 192.168.0.15
  10.   Swap usage:   0%                IP address for eth1: 172.168.2.1
  11.  
  12.   Graph this data and manage this system at https://landscape.canonical.com
  13.  
  14. [email protected]:~# cat /etc/network/interfaces
  15. auto lo
  16. iface lo inet loopback
  17.  
  18. auto eth0
  19. iface eth0 inet static
  20. address 192.168.0.15
  21. netmask 255.255.255.0
  22. gateway 192.168.0.1
  23. dns-nameservers  196.28.182.20 196.28.75.220
  24. pre-up /sbin/iptables-restore < /etc/iptables.rules
  25.  
  26. auto eth1
  27. iface eth1 inet static
  28. address 172.168.2.1
  29. netmask 255.255.255.0
  30. [email protected]:~# cat/etc/iptables.rules
  31. -su: cat/etc/iptables.rules: No such file or directory
  32. [email protected]:~# cat /etc/iptables.rules
  33. *filter
  34. :INPUT DROP [0:0]
  35. :FORWARD ACCEPT [4038487:3114149919]
  36. :OUTPUT ACCEPT [161741:31953053]
  37. -A INPUT -i lo -j ACCEPT
  38. -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  39. -A INPUT -p tcp -m tcp --dport 2124 -j ACCEPT
  40. -A INPUT -s 172.168.2.0/255.255.255.0 -j ACCEPT
  41. -A INPUT -j DROP
  42.  
  43. COMMIT
  44. *nat
  45. :PREROUTING ACCEPT [57491:5055636]
  46. :POSTROUTING ACCEPT [4975:340111]
  47. :OUTPUT ACCEPT [4729:328699]
  48. -A PREROUTING -i eth0 -p tcp -m tcp --dport 3389 -j DNAT --to-destination 172.168.2.120
  49. -A PREROUTING -i eth0 -p tcp -m tcp --dport 3388 -j DNAT --to-destination 172.168.2.121
  50. -A POSTROUTING -d 172.168.2.120 -p tcp -m tcp --dport 3389 -j SNAT --to-source 192.168.0.15
  51. -A POSTROUTING -d 172.168.2.121 -p tcp -m tcp --dport 3388 -j SNAT --to-source 192.168.0.15
  52. -A POSTROUTING -s 172.168.2.0/24 -p tcp -m tcp -m multiport --dports 25,53,143,995,587,443,465,2124 -j SNAT --to-source 192.168.0.15
  53. -A POSTROUTING -s 172.168.2.0/24 -p udp -m udp -m multiport --dports 53,123 -j SNAT --to-source 192.168.0.15
  54. COMMIT
  55.  
  56. [email protected]:~# iptables -L
  57. Chain INPUT (policy DROP)
  58. target     prot opt source               destination         
  59. ACCEPT     all  --  anywhere             anywhere           
  60. ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
  61. ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:2124
  62. ACCEPT     all  --  ACA80200.ipt.aol.com/24  anywhere           
  63. DROP       all  --  anywhere             anywhere           
  64.  
  65. Chain FORWARD (policy ACCEPT)
  66. target     prot opt source               destination         
  67.  
  68. Chain OUTPUT (policy ACCEPT)
  69. target     prot opt source               destination       
  70.  
  71. [email protected]:~# iptables -L -v
  72. Chain INPUT (policy DROP 0 packets, 0 bytes)
  73.  pkts bytes target     prot opt in     out     source               destination         
  74.     0     0 ACCEPT     all  --  lo     any     anywhere             anywhere           
  75.   252 20422 ACCEPT     all  --  any    any     anywhere             anywhere             state RELATED,ESTABLISHED
  76.     3   148 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:2124
  77.     4   336 ACCEPT     all  --  any    any     ACA80200.ipt.aol.com/24  anywhere           
  78.    33 10824 DROP       all  --  any    any     anywhere             anywhere           
  79.  
  80. Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
  81.  pkts bytes target     prot opt in     out     source               destination         
  82.  
  83. Chain OUTPUT (policy ACCEPT 194 packets, 24105 bytes)
  84.  pkts bytes target     prot opt in     out     source               destination         

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right