06-04-2009 10:49 AM - edited 03-06-2019 06:06 AM
Hi,
I've been searching on how to setup port forwarding on a 877, but the information I find all use NAT for this, like the example below for forwarding to a mail-server:
ip nat inside source static tcp 10.0.0.2 25 interface dialer 1 25
As the word 'nat' is used, I guess the data on the LAN-side would use the routers IP-Address (eg 10.0.0.1) ; but I need to know the original address (the client's address somewhere on the internet), but how to do such a setup is the information I can't find in the topics mentioning 'port forwarding'.
Can anyone confirm which address the internal server would see ? And if it is the router's address, would it be possible with another config to get the external address ?
Thanks,
Alain
--
Remark: It is a little unfair to post this, as I didn't test if I interprete the config-line correct, but the problem is that I can't bring the current router down if I'm not sure the new one will act equally. So it's more a question during the planning phase...which I want to implement as soon as possible ;)
06-04-2009 10:56 AM
Alain
The internal server would see the real IP address of the client from the Internet.
"ip nat inside source static tcp 10.0.0.2 25 interface dialer 1 25"
means that the internal server of 10.0.0.2 will appear to the Internet as the IP address of the dialer interface on port 25. The nat statement has no effect on the external client addresses from the Internet.
Jon
06-04-2009 10:59 AM
OK thanks! I feel a little more confident before I start my 'real life trial' :)
06-18-2009 11:46 AM
This works now ... (I didn't find time before to do the complete setup) ... but now I have another problem.
For one of the protocols I'd prefer NAT i.s.o. PAT ; because it should be forwarded to another router, and that one wouldn't know how to reply (the real source can be variable, and the 877 isn't the default gateway for that other router)
Is it possible to combine this (PAT and NAT from outside to inside)? I worked with the Cisco PIX before, and I think that one was easier in setup (NAT & routing were more obvious)...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide