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

Advertising

Something
Friday, December 7th, 2007 at 1:12:18am UTC 

  1. run the following command:-
  2.  
  3. # iptables -t nat -A PREROUTING -d 212.241.215.114 -p tcp --dport 26 -j REDIRECT --to-ports 25 -v
  4.  
  5. REDIRECT  tcp opt -- in * out *  0.0.0.0/0  -> 212.241.215.114  tcp dpt:26 redir ports 25
  6. iptables: No chain/target/match by that name
  7.  
  8. -----------------------------------------------------------
  9.  
  10. # iptables -L
  11. Chain INPUT (policy ACCEPT)
  12. target     prot opt source               destination
  13. ACCEPT     icmp --  anywhere             anywhere
  14. VZ_INPUT   all  --  anywhere             anywhere
  15.  
  16. Chain FORWARD (policy ACCEPT)
  17. target     prot opt source               destination
  18. ACCEPT     icmp --  anywhere             anywhere
  19. VZ_FORWARD  all  --  anywhere             anywhere
  20.  
  21. Chain OUTPUT (policy ACCEPT)
  22. target     prot opt source               destination
  23. ACCEPT     icmp --  anywhere             anywhere
  24. VZ_OUTPUT  all  --  anywhere             anywhere
  25.  
  26. Chain VZ_FORWARD (1 references)
  27. target     prot opt source               destination
  28.  
  29. Chain VZ_INPUT (1 references)
  30. target     prot opt source               destination
  31.  
  32. Chain VZ_OUTPUT (1 references)
  33. target     prot opt source               destination
  34.  
  35.  
  36. ---------------------------------------------------------------
  37.  
  38. # iptables -L -n -t nat
  39. Chain PREROUTING (policy ACCEPT)
  40. target     prot opt source               destination
  41.  
  42. Chain POSTROUTING (policy ACCEPT)
  43. target     prot opt source               destination
  44.  
  45. Chain OUTPUT (policy ACCEPT)
  46. target     prot opt 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
worth-right
worth-right