
I'm still nowhere, I have the cisco device now working, can acces the internet, but nobody can acces my pc on specified port from outside.
this is what I did.
1: setting folowing settings
hostname pix
domain-name ew
ip address inside 192.168.2.1 255.255.255.0
ip address outside 192.168.1.17 255.255.255.0
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
route outside 0.0.0.0 0.0.0.0 192.168.1.254
dhcpd address 192.168.2.2-192.168.2.10 inside
dhcpd dns 192.168.1.254
dhcpd enable inside
ssh 192.168.1.20 255.255.255.0
ssh 192.168.2.2 255.255.255.0 inside
passwd 12345678
access-list outside_access_in permit tcp any host 192.168.1.20 eq 5900
access-group outside_access_in in interface outside
static (inside,outside) tcp 192.168.1.20 5900 192.168.2.2 5900 netmask 255.255.255.255
Here some info from show:
"" pixtest(config)# show route
outside 0.0.0.0 0.0.0.0 192.168.1.254 1 OTHER static
outside 192.168.1.0 255.255.255.0 192.168.1.17 1 CONNECT static
inside 192.168.2.0 255.255.255.0 192.168.2.1 1 CONNECT static
pixtest(config)# ""
""pixtest(config)# show access-list
access-list cached ACL log flows: total 0, denied 0 (deny-flow-max 256)
alert-interval 300
access-list outside_access_in; 2 elements
access-list outside_access_in line 1 permit tcp any host 192.168.1.20 eq 5900 (hitcnt=0)
access-list outside_access_in line 2 permit tcp any host 192.168.1.20 eq 5800 (hitcnt=0)
pixtest(config)# ""
""pixtest(config)# show dhcpd
dhcpd address 192.168.2.2-192.168.2.10 inside
dhcpd dns 192.168.1.254
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd enable inside
pixtest(config)# ""
""pixtest(config)# show ip
System IP Addresses:
ip address outside 192.168.1.17 255.255.255.0
ip address inside 192.168.2.1 255.255.255.0
Current IP Addresses:
ip address outside 192.168.1.17 255.255.255.0
ip address inside 192.168.2.1 255.255.255.0
pixtest(config)# ""
"" pixtest(config)# show nat
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
pixtest(config)# ""
"" pixtest(config)# show access-group
access-group outside_access_in in interface outside
pixtest(config)# ""
I was tryng to make sure that computer with IP : 192.168.1.20(outside) can acces my pc with vnc on port 5900, my pc has ip : 192.168.2.2 inside,
and shh , but does not work too, not from inside not form outside...
what do I do wrong ???
and pdm is not working anymore.
pixtest(config)# show config
: Saved
: Written by enable_15 at 11:49:02.670 UTC Fri Mar 2 2007
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd Vyg.xxxxxxxxxx encrypted
hostname pixtest
domain-name ew
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list outside_access_in permit tcp any host 192.168.1.20 eq 5900
access-list outside_access_in permit tcp any host 192.168.1.20 eq 5800
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.1.17 255.255.255.0
ip address inside 192.168.2.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.2.2 255.255.255.255 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp 192.168.1.20 5900 192.168.2.2 5900 netmask 255.255.255.255 0 0
static (inside,outside) tcp 192.168.1.20 5800 192.168.2.2 5800 netmask 255.255.255.255 0 0
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 192.168.1.254 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http 192.168.2.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet timeout 5
ssh 192.168.1.0 255.255.255.0 outside
ssh 192.168.1.0 255.255.255.0 inside
ssh 192.168.2.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
dhcpd address 192.168.2.2-192.168.2.10 inside
dhcpd dns 192.168.1.254
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd enable inside
terminal width 80
Cryptochecksum:xxxxxxxxxxxxx