Skip to content

Instantly share code, notes, and snippets.

@xardit
Created May 25, 2016 20:52
Show Gist options
  • Save xardit/41a05746dd71e82474c6a19d44a8180c to your computer and use it in GitHub Desktop.
Save xardit/41a05746dd71e82474c6a19d44a8180c to your computer and use it in GitHub Desktop.
##### tcp port forward
~#configure terminal
~$ip nat inside source static tcp 192.168.1.69 22 FastEthernet0/1 22
(press to get out of config) CTRL+Z
~#write memory
#####
##### show IP and INTERFACE
~#show ip interface brief
~#sh ip int br
#####
### A CONFIG
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0 secondary
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 186.67.181.140 255.255.255.248
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 186.67.181.141
no ip http server
no ip http secure-server
ip nat inside source list 100 interface FastEthernet0/1 overload
ip nat inside source static tcp 192.168.1.20 80 186.67.181.140 80 extendable
!
!
access-list 100 permit ip any any
access-list 111 permit ip 192.168.1.0 0.0.0.255 any
access-list 111 permit ip 192.168.0.0 0.0.0.255 any
####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment