06-03-2018 04:32 PM - edited 03-07-2019 12:23 AM
Hi Everyone,
i have two router 1941 cisco :
I Want Forward ِAll Ports On R2 To 10.0.0.250 and Except the two ports 22 and 161 tcp/udp to gig0/0 209.165.100.30 from PC 192.168.1.100 ?
Details :
from pc 192.168.1.100 ---> to ServerWeb 10.0.0.250 ( forward all port but two ports 161 and 22 )
from pc 192.168.1.100 ---> to R2 ( forward two ports 161 and 22 )
Thanks.
06-04-2018 08:41 AM
Hello,
for the first part:
from pc 192.168.1.100 ---> to ServerWeb 10.0.0.250 ( forward all port but two ports 161 and 22 )
use an access list and specify that as your NAT source:
access-list 101 deny tcp host 192.168.1.100 eq 161 host 10.0.0.250 eq 161
access-list 101 deny tcp host 192.168.1.100 eq 22 host 10.0.0.250 eq 22
access-list 101 permit ip host 192.168.1.100 host 10.0.0.250
For the second part:
from pc 192.168.1.100 ---> to R2 ( forward two ports 161 and 22 )
you want to forward those two ports to the router itself ?
06-04-2018 04:07 PM - edited 06-04-2018 04:08 PM
Hello Georg,
Thank you for your reply,
you want to forward those two ports to the router itself ?
yes my dear.
Best regards,
06-13-2018 02:15 PM
Sorry for my late reply. What is the source, that is, where do you want those two ports being forwarded from ? If they only go to the router, you don't need NAT...(?).
06-05-2018 01:51 AM
Hello
You mention Port forwarding but then in your title you state NAT PF, Then in your post detail you state private addressing:
"I Want Forward ِAll Ports On R2 To 10.0.0.250 and Except the two ports 22 and 161 tcp/udp to gig0/0 209.165.100.30 from PC 192.168.1.100 ?
from pc 192.168.1.100 ---> to ServerWeb 10.0.0.250 ( forward all port but two ports 161 and 22 )
from pc 192.168.1.100 ---> to R2 ( forward two ports 161 and 22 )"
So internally 192.168.1.100 should be able to reach the web server anyway, and I am assuming 209.165.100.30 is one of you inside global addressing if so then externally you need some static address translation for the PF
ip nat inside source static tcp 10.0.0.250 80 interface gig0/0 80 extendable
ip nat inside source static tcp 10.0.0.250 443 interface gig0/0 443 extendable
ip nat inside source static tcp 192.168.1.100 22 209.165.100.20 22 extendable
ip nat inside source static tcp 192.168.1.100 161 209.165.100.20 161 extendable
res
Paul
06-05-2018 07:00 AM
Thank you paul driver,
Yes , 209.165.100.30 is one of you inside global addressing
I Want:
1- Forward ِAll Ports On R2 from outside g0/0 To 10.0.0.250 but two ports 22 and 161 Not to 10.0.0.250
2- Forward ِtwo ports 22 and 161 to the router2 itself from outside g0/0
Best regards,
06-05-2018 11:36 AM
Hello
okay !
have you tried adding the static nat rules I precisely posted?
res
paul
06-05-2018 12:56 PM - edited 06-05-2018 01:03 PM
Hi dear...
but i want forword all ports to web server but two port 22 and 161 ?
I will do the necessary. I'll come back. if needed. Then I'll close the posts
Thank you very much,
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