02-02-2017 10:44 PM - edited 03-12-2019 04:28 AM
hi, i just bought a new cisco router4321, when i try to port forward vpn ports by using following command:
ip nat inside source static tcp 1723 public_ip LanVPNSvr_IP 1723
got a message "port 1723 is being used by the system", and i need to forward all following vpn ports, please help me with the right commands, thank you in advance:)
L2TP
IKE
GRE
PPTP
IKE-NAT
Solved! Go to Solution.
02-02-2017 11:27 PM
It should be:
ip nat inside source static tcp LanVPNSvr_IP 1723 public_ip 1723
ip nat inside source static gre LanVPNSvr_IP public_ip
ip nat inside source static udp LanVPNSvr_IP 500 public_ip 500
ip nat inside source static udp LanVPNSvr_IP 4500 public_ip 4500
ip nat inside source static esp LanVPNSvr_IP public_ip
02-02-2017 11:27 PM
It should be:
ip nat inside source static tcp LanVPNSvr_IP 1723 public_ip 1723
ip nat inside source static gre LanVPNSvr_IP public_ip
ip nat inside source static udp LanVPNSvr_IP 500 public_ip 500
ip nat inside source static udp LanVPNSvr_IP 4500 public_ip 4500
ip nat inside source static esp LanVPNSvr_IP public_ip
02-05-2017 09:44 PM
thank you very much, but how can i port forward following:
L2TP
IKE
GRE
PPTP
IKE-NAT
and also seem those ports are already used by the syste, any way to unblock it? thank you in advance :)
02-06-2017 08:31 AM
"ip nat inside source static tcp LanVPNSvr_IP 1723 public_ip 1723 extendable " works :)
but
ip nat inside source static gre LanVPNSvr_IP public_ip returns error " invalid input detected at > mark"
please help.
02-06-2017 11:15 AM
You're right. You can NAT GRE. I made a mistake there. NAT tcp port 1723 is enough. The NAT engine will recognise this is a PPTP connection and forward through the GRE traffic as well.
02-06-2017 11:22 AM
you know what, i forgot to save the config:(, then after reboot, "$port 1723 is being used by the system" error happen again when i do " ip nat inside source static tcp LanVPNSvr_IP 1723 public_ip 1723 extendable", do you know why?
02-06-2017 11:23 AM
Try this, and then quickly add in the nat:
clear ip nat translations *
02-06-2017 11:30 AM
got error "invalid input detected at '>' mark
02-06-2017 11:32 AM
This is not a configuration command. If you want to execute it it configure mode use:
do clear ip nat translations *
02-06-2017 11:35 AM
same error in config mode: "invalid input detedted at '>' marker
02-06-2017 11:38 AM
I just tested that exact command, clearing the IP NAT translations, on a 4331 and it worked perfectly. Please re-produce the input you are using and the error so I can see it in context.
02-06-2017 11:42 AM
cisco4321data(config)#do clear ip nat translations *
^
% Invalid input detected at '^' marker.
02-06-2017 11:45 AM
Try this:
do clear ip nat translation *
02-06-2017 11:50 AM
it went ok, but still has " %Port 1723 is being used by system" error
02-06-2017 11:53 AM
Try pasting the two lines in at the same time, so there is only a tiny delay between them.
Other possibilities are that you have some kind of VPDN or PPTP service already configured on the router. Do you have any lines with "vpdn" in them?
Failing that, try shutting down your outside interface, apply the NAT config, and then enable the outside interface again.
Failing that, try shutting down the outside interface, save the config, reboot, apply the NAT configuration, bring the interface up again and save the config.
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