IPsec Site to site

can we restrict the acces to a specific ports in an IPSec site to site VPN tunnel.

say i want to open only port 445 and 3389 between a site to site VPN.

If yes could someone send the basic config
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
Open those ports to what hosts?

A site to site VPN will allow all traffic between those 2 sites.

If you don't want that and you have a single server, either forward/NAT those 2 ports or install a VPN server and connect using a client.

Or, if you have multiple servers, use a firewall behind the VPN tunnel and restrict the traffic there.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kskr_networksAuthor Commented:
Hello Dan,I dint get the below line. could you explain

either forward/NAT those 2 ports
Dan CraciunIT ConsultantCommented:
Assuming you have on site A the public IP and a host that you want to RDP into (port 3389) from outside.

Then on site A's router you would port forward port 3389 to, so when someone from the Internet types, they will reach


For routers that use iptables-style config, it's called DNAT.
the risk with the offered solution is that anyone on the internet can attempt access, unless there is an access list applied somewhere in restrict the source ip's that can utilise the translation.

to answer the first question, yes. the ipsec definition of encrypted and tunnelled traffic permits that protocol and port can be defined. to achieve this in a cisco environment, the access list used to define vpn traffic would be thus:

ip access-list extended <list name/number> permit tcp <rdp client ip/range> <rdp server ip/range> eq 3389

Open in new window

as an example for tunnelling rdp. other ports and protocols can be added as required.
kskr_networksAuthor Commented:
the second solution looks good to me as we have already this setup running...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.