Advertisement
commandlinekid

Cisco Router turned into Port Forwarding Temp Verizon Mifi

Jul 17th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. HERE IS A SCRIPT YOU CAN USE TO:
  2.  
  3. 1.) Turn your Cisco router that is currently ROUTING and NATTING and doing all kinds of professional stuff with 16 ips into....
  4. 2.) A Router that gets ONE public IP ADDRESS and port-forwards for IMAP, port 80, etc for a temporary solution.
  5.  
  6. Note: This script will just wipe out your current config so no need to save it! Just reboot when your main connection comes back up and you should have your production (original) config right there ready to go.
  7.  
  8. NOTE: I'm turning "off" some stuff I had set. You may not need to do this.
  9.  
  10. NOTE: I'm assuming this "mifi setup as a BRIDGE (you do that in the mifi setup from your computer) is plugged into the WAN PORT of the Cisco router which is FastEthernet 0/0. I also have several VLANS setup because I'm running a Cisco switch with VLANS. 1924 maybe? Doesn't really matter for this solution, just noting why you'll see interfaces like 1.4, 1.5, etc. Those are VLANS that all are on FastEthernet 0/1. See like 0/1.4 is VLAN interface 4 on FastEthernet 0/1.
  11.  
  12. NOTE: Where you see like "1.1.1.52" below is my say...web server. I just changed the IPs so I wasn't posting them here. Just put in yours or remove where you don't have the need.
  13.  
  14. =====START
  15. config t
  16. interface FastEthernet0/0
  17.  
  18. no ip mtu 1492
  19. no ip tcp adjust-mss 1452
  20. no ip mroute-cache
  21. duplex auto
  22. speed auto
  23. ntp disable
  24. no pppoe enable
  25. no pppoe-client dial-pool-number 1
  26. no cdp enable
  27. service-policy output VOICE
  28. ip address dhcp
  29. ip nat outside
  30.  
  31. exit
  32.  
  33. interface FastEthernet0/1.4
  34. ip nat inside
  35. shut
  36. no shut
  37. exit
  38.  
  39.  
  40. no ip nat pool thenatpool MYPRODUCTIONNATTEDIP MYPRODUCTIONNATTEDIP netmask 255.255.255.240
  41. no ip nat inside source route-map nat-allow pool thenatpool overload
  42. ip nat inside source route-map nat-allow pool thenatpool2 overload
  43. no ip http server
  44. no ip http secure-server
  45. ip classless
  46. no ip route 0.0.0.0 0.0.0.0 Dialer1
  47. ip nat pool thenatpool2 NEWIPADDRESSASSIGNEDBYTHEMIFI NEWIPADDRESSASSIGNEDBYTHEMIFI netmask SUBNETMASKOFTHATIP
  48. ip nat inside source static tcp 1.1.1.56 7071 interface FastEthernet0/0 7071
  49. ip nat inside source static tcp 1.1.1.56 389 interface FastEthernet0/0 389
  50. ip nat inside source static tcp 1.1.1.56 993 interface FastEthernet0/0 993
  51. ip nat inside source static tcp 1.1.1.56 995 interface FastEthernet0/0 995
  52. ip nat inside source static tcp 1.1.1.56 465 interface FastEthernet0/0 465
  53. ip nat inside source static tcp 1.1.1.52 443 interface FastEthernet0/0 443
  54. ip nat inside source static tcp 1.1.1.52 80 interface FastEthernet0/0 80
  55. ip nat inside source static udp 1.1.1.56 25 interface FastEthernet0/0 25
  56. ip nat inside source static tcp 1.1.1.56 25 interface FastEthernet0/0 25
  57. ip nat inside source route-map nat-allow pool thenatpool overload
  58. ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
  59.  
  60.  
  61. no ip access-list extended nat-permit
  62.  
  63. ip access-list extended nat-permit
  64. deny ip 10.0.0.0 0.255.255.255 10.0.0.0 0.255.255.255
  65. permit ip 10.1.32.0 0.0.0.255 any
  66. permit ip 10.1.33.0 0.0.0.255 any
  67. permit ip 10.1.41.0 0.0.0.255 any
  68. permit ip 10.1.72.0 0.0.0.3 any
  69. permit ip 1.1.1.48 0.0.0.15 any
  70. exit
  71. int fastethernet 0/0
  72. shut
  73. no shut
  74.  
  75.  
  76.  
  77.  
  78.  
  79. =====END
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. Keywords: Global Capacity, MegaPath, Covad, Verizon MiFi, temporary, port-fowarding solution, cisco 2621, router
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement