Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. 1)
  2. Fedora
  3. ifconfig eth0_rename 1.1.1.254 netmask 255.255.0.0
  4.  
  5. Windows
  6. ip : 1.1.1.1
  7. gw : 1.1.1.254
  8. dns : 10.16.0.2
  9.  
  10. Fedora
  11. /etc/init.d/iptables restart
  12. echo 1 > /proc/sys/net/ipv4/ip_forward
  13.  
  14. 2)
  15.  
  16. iptables -t nat -A POSTROUTING -j SNAT --to-source 10.6.6.82
  17.  
  18. LIST RULES(iptables -t nat -L POSTROUTING)
  19.  
  20. - Faz alterações a porta de destino e origem
  21.  
  22. 3)
  23.  
  24. iptables -t nat -A POSTROUTING -j SNAT --to-source 10.6.21.1-10.6.21.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement