--- In PIX_Firewall%40yahoogroups.com">PIX_Firewall
yahoogroups.com, "xionextreme" <xionextreme
...>
wrote:
>
> Can you please show me a detailed sample code to allow IP
> 207.58.145.109 to be able to access IP 10.1.7.1 through port 8081?
> (port forwarding)
> I have tried many things, but nothing has worked so far.
>
> Please help...
>
> Thank you in advance.
>
I assume this is what you're after:
interface Ethernet0
nameif outside
security-level 0
ip address (outside_ip) (outside_mask)
!
interface Ethernet1
nameif inside
security-level 100
ip address 10.1.7.254 255.255.255.0
!
object-group network nat-permitted-servers
network-object host 10.1.7.1
access-list nat-permitted extended permit ip object-group
nat-permitted-servers
access-list inbound extended permit tcp host 203.58.145.107 host
(outside_ip) eq 8081
nat (inside) 1 access-list nat-permitted
static (inside,outside) tcp (outside_ip) 8081 10.1.7.1 8081 netmask
255.255.255.255
access-group inbound in interface outside
.