Port forwarding on Cisco 1800 series - Help

Can someone help explain how I can forward ports, such as 80, from a public DHCP address, to an Internal LAN address?

Because my public IP changes often I'm not sure how I can NAT that to an internal LAN ip such as 192.168.1.103 port 80.

Currently my router is setup like so to NAT outside:

ip nat inside source list 1 interface FastEthernet1 overload

But not sure how I can take the DHCP assigned IP/port to an internal IP.

Thanks?

Reply to
Tom
Loading thread data ...

| Can someone help explain how I can forward ports, such as 80, from a | public DHCP address, to an Internal LAN address? | | Because my public IP changes often I'm not sure how I can NAT that to | an internal LAN ip such as 192.168.1.103 port 80. | | Currently my router is setup like so to NAT outside: | | ip nat inside source list 1 interface FastEthernet1 overload | | But not sure how I can take the DHCP assigned IP/port to an internal | IP.

ip nat inside source static tcp 192.168.1.103 80 interface FastEthernet1

80 extendable
Reply to
Morph

Thanks for quick reply, but...seems extendable is seen as invalid input. Maybe IOS?

Thor(config)#ip nat inside source static tcp 192.168.1.103 80 int f1

80 ?

Thor(config)#$de source static tcp 192.168.1.103 80 int f1 80 ext ? % Unrecognized command ip nat inside source static tcp 192.168.1.103 80 int f1 80 extendable =20 ^

12.3(8r)YH12 release fc1
Reply to
Tom

Not sure what's up, but under initial config I was able to enter the line with extendable, however after finalizing my config that last arg was no longer available, so appear that something in my config is changing so that I can not use this line?

Would it be due to using DHCP or maybe my config to NAT outside for my LAN?

It's odd that it was available at first then as I was ready to enter the line after initial config that it was no longer available.

Reply to
Tom

om

I'm beginning to think this syntax is not correct:

ip nat inside source static tcp 192.168.1.103 80 interface FastEthernet1

80 extendable

Any other suggestions ?

Thanks.

Reply to
Tom

I think it should be "overload" instead of "extendable".

Reply to
Rob

Nope...will not take any args after the port number. The help "?" shows as the last option in this case.

Is very odd, because seems should be such a simple thing to do.

Reply to
Tom

And it does not work?

Reply to
Rob

Nope...does not work. So will take the command without the last arg, but just does not work. I can enter the command with the extendable arg if I use the external IP address vs the interface, however that won't work because my external (public) IP is assigned via DHCP.

Seems so close, but so far:(

Reply to
Tom

This works:

ip nat inside source static tcp 192.168.1.103 22 68.204.221.132 22 extendable

But obviously that won't do because the IP will change. Using DDNS to always get to my internal IP.

Reply to
Tom

Ouch! I didn't notice that my DDNS was not working...

Turns out this does work:

ip nat inside source static tcp 192.168.1.103 22 interface Ethernet0

22

My DDNS name was not being updated for some reason and IP had changed.

Thanks for all the feedback!

...walks away red faced....

Reply to
Tom

| > ip nat inside source static tcp 192.168.1.103 80 interface FastEthernet1 | > 80 extendable | | Thanks for quick reply, but...seems extendable is seen as invalid | input. Maybe IOS?

Try without the extendable command. It should work.

Reply to
Morph

Thanks...you are correct...worked without extendable:)

Reply to
Tom

I never use "extendable" I read the documentation, failed to understand it at all and have never looked back:-)

It is in a lot of Cisco examples and lots of people do seem to put it in their NAT statements but I kind of like to know what is going on.

Reply to
bod43

m

I'll probably never use it either. I too tried to make sense of it, but just couldn't see why it is necessary. Seems fine without it:)

Reply to
Tom

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.