/ Forside / Teknologi / Netværk / TCP/IP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
TCP/IP
#NavnPoint
Per.Frede.. 4668
BjarneD 4017
severino 2804
pallebhan.. 1680
EXTERMINA.. 1525
xou 1455
strarup 1430
Manse9933 1419
o.v.n. 1400
10  Fijala 1204
Pix 501 - redirect af terminalservice og s~
Fra : Dennis Pedersen


Dato : 07-12-04 16:58

Hej,
Jeg har lidt vrøvl med en Pix 501 jeg ikke kan få til at makke ret (det er
måske banalt men i morges var første gang jeg overhovedet lagde fingre på
sådan et dyr).
Internet etc kører - men at få noget redirected udefra det går sku ikke lige
som jeg vil.
Der er ingen hul igennem overhovedet udefra og ind.

Alt indefra fungerer efter planen.
det jeg er ude efter er at få terminal service igennem samt smtp.
Foran pixen sidder en cisco 677 fra tiscali der sender alt videre til 1.2
Jeg har googled en del men har ikke rigtig kunne finde ud af hvor filmen
knækker - anyone?

Umiddelbart ville jeg sige følgende 2 linjer skulle gøre tricket men
(surprise)

static (inside,outside) tcp interface 3389 192.168.16.168 3389 netmask
255.255.255.255 0 0

access-list outside_in permit tcp any interface outside eq 3389


Nedenfor er sh run - nogen der har et bud på hvad der kan være los?

pixfirewall# sh run
: Saved
:
PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password XXXXXXXXXXXXXXXXXXX
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pixfirewall
domain-name ciscopix.com
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 inside_outbound_nat0_acl permit ip 192.168.111.0 255.255.255.0
172.1
23.11.0 255.255.255.224
access-list outside_cryptomap_dyn_20 permit ip any 172.123.11.0
255.255.255.224

access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
www
access-list inside_access_in permit udp 192.168.16.0 255.255.255.0 any eq
domain

access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
pop3
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
smtp
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
https

access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 eq 3389
any
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
3390
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
telnet

access-list outside_in permit tcp any interface outside eq smtp
access-list outside_in permit tcp any interface outside eq 3389
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.1.2 255.255.255.0
ip address inside 192.168.16.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool vpnpool 172.123.11.1-172.123.11.20
pdm location 172.123.11.0 255.255.255.224 outside
pdm location 192.168.1.0 255.255.255.0 inside
pdm location 192.168.111.0 255.255.255.0 inside
pdm location 192.168.16.111 255.255.255.255 inside
pdm location 192.168.16.168 255.255.255.255 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface smtp 192.168.16.168 smtp netmask
255.255.2
55.255 0 0
static (inside,outside) tcp interface 3389 192.168.16.168 3389 netmask
255.255.2
55.255 0 0
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 192.168.1.1 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 uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 192.168.16.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
sysopt connection permit-ipsec
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map client authentication LOCAL
crypto map outside_map interface outside
isakmp enable outside
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
telnet 192.168.16.111 255.255.255.255 inside
telnet 192.168.16.168 255.255.255.255 inside
telnet timeout 5
ssh timeout 5
management-access inside
console timeout 0
dhcpd address 192.168.16.200-192.168.16.250 inside
dhcpd lease 3600
dhcpd ping_timeout 750
username XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
terminal width 80
Cryptochecksum:XXXXXXXXXXXXXXXXXXXXX
: end
pixfirewall#



 
 
Kim Rubeck Jensen (07-12-2004)
Kommentar
Fra : Kim Rubeck Jensen


Dato : 07-12-04 20:11

Dennis Pedersen wrote:

> access-list outside_in permit tcp any interface outside eq 3389


Hejsa..

Din ACL kan jeg ikke se er bundet til dit outside interface...

Gør dette vha "access-group outside_in in interface outside"

Mvh

Rubeck

Dennis Pedersen (07-12-2004)
Kommentar
Fra : Dennis Pedersen


Dato : 07-12-04 20:32


"Kim Rubeck Jensen" <rubz_@_SPM-Rubeck_.dk> wrote in message
news:cp4v84$1p5f$1@news.cybercity.dk...
> Dennis Pedersen wrote:
>
> > access-list outside_in permit tcp any interface outside eq 3389
>
>
> Hejsa..
>
> Din ACL kan jeg ikke se er bundet til dit outside interface...
>
> Gør dette vha "access-group outside_in in interface outside"

BINGO!
Jeg takker og bukker :)
Så virker det..

Det der står for skud næst er VPN ->er der nogen fif i den retning så jeg
evt. kunne undgå og blive mere skaldet end jeg allerede er blevet efter
idag? :)


/Dennis



Asbjorn Hojmark (08-12-2004)
Kommentar
Fra : Asbjorn Hojmark


Dato : 08-12-04 06:44

On Tue, 7 Dec 2004 20:32:21 +0100, "Dennis Pedersen"
<usenetspam@*FJERNDETTE*daydreamer.dk> wrote:

> Det der står for skud næst er VPN ->er der nogen fif i den retning så jeg
> evt. kunne undgå og blive mere skaldet end jeg allerede er blevet efter
> idag? :)

Nu er VPN jo mange ting. Du kunne starte med at fortælle, hvad du skal
bruge det til.

Du kan selvfølgelig også bare snyde og læse i manualen:
Site-to-Site http://tinyurl.com/5qssn
Remote Access http://tinyurl.com/6nyoo
Config Guide http://tinyurl.com/6fpxw

-A

Dennis Pedersen (08-12-2004)
Kommentar
Fra : Dennis Pedersen


Dato : 08-12-04 14:24


"Asbjorn Hojmark" <Asbjorn@Hojmark.ORG> wrote in message
news:kv4dr05amflrmtbrfr8eib63ko2ghpbo7j@news.sunsite.dk...
> On Tue, 7 Dec 2004 20:32:21 +0100, "Dennis Pedersen"
> <usenetspam@*FJERNDETTE*daydreamer.dk> wrote:
>
> > Det der står for skud næst er VPN ->er der nogen fif i den retning så
jeg
> > evt. kunne undgå og blive mere skaldet end jeg allerede er blevet efter
> > idag? :)
>
> Nu er VPN jo mange ting. Du kunne starte med at fortælle, hvad du skal
> bruge det til.

Ah ja, det var lidt underforstået der var tale om Remote Access.

> Du kan selvfølgelig også bare snyde og læse i manualen:
> Site-to-Site http://tinyurl.com/5qssn
> Remote Access http://tinyurl.com/6nyoo
> Config Guide http://tinyurl.com/6fpxw

Efter at have læst lidt og bokset lidt rundt med det har jeg fået mig et nyt
prob.
VPN (PPTP) kan godt connecte, jeg får et 172.x IP nummer, men jeg kan ingen
data få igennem til serveren.
Jeg har 'sysopt connection permit-pptp' med således pptp skulle gå udenom
accesslisterne.
Nu efter et par timer har jeg fundet en med et lignende prob men ingen
løsning (eller - løsningen virker heller ikke hos mig)
http://tinyurl.com/6z4e4

no access-list pptp_ip permit ip 192.168.16.0 255.255.255.0 172.123.11.0
255.255.255.0
no access-group pptp_ip in interface outside

Nogen der har et bud?

config:
pixfirewall(config)# sh run
: Saved
:
PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password XXXX
passwd XXXX
hostname pixfirewall
domain-name ciscopix.com
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 inside_outbound_nat0_acl permit ip any 172.123.11.0
255.255.255.224
access-list outside_cryptomap_dyn_20 permit ip any 172.123.11.0
255.255.255.224
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
www
access-list inside_access_in permit udp 192.168.16.0 255.255.255.0 any eq
domain
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
pop3
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
smtp
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
https
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 eq 3389
any
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
3390
access-list inside_access_in permit tcp 192.168.16.0 255.255.255.0 any eq
telnet
access-list outside_in permit tcp any interface outside eq smtp
access-list wts permit tcp host XXXXX any eq 3389
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.1.2 255.255.255.0
ip address inside 192.168.16.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool vpnpool 172.123.11.1-172.123.11.20
pdm location 172.123.11.0 255.255.255.224 outside
pdm location 192.168.1.0 255.255.255.0 inside
pdm location 192.168.16.111 255.255.255.255 inside
pdm location 192.168.16.168 255.255.255.255 inside
pdm location XXXXX 255.255.255.255 outside
pdm location XXXXX 255.255.255.255 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface smtp 192.168.16.168 smtp netmask
255.255.255.255 0 0
static (inside,outside) tcp interface 3389 192.168.16.168 3389 netmask
255.255.255.255 0 0
access-group wts in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 192.168.1.1 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 uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http XXXXX 255.255.255.255 outside
http XXXXX 255.255.255.255 outside
http 192.168.16.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
sysopt connection permit-ipsec
sysopt connection permit-pptp
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map client authentication LOCAL
crypto map outside_map interface outside
isakmp enable outside
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
telnet 192.168.16.111 255.255.255.255 inside
telnet 192.168.16.168 255.255.255.255 inside
telnet timeout 5
ssh XXXXX 255.255.255.255 outside
ssh XXXXX 255.255.255.255 outside
ssh timeout 5
management-access inside
console timeout 0
vpdn group PPTP-VPDN-GROUP accept dialin pptp
vpdn group PPTP-VPDN-GROUP ppp authentication mschap
vpdn group PPTP-VPDN-GROUP ppp encryption mppe auto
vpdn group PPTP-VPDN-GROUP client configuration address local vpnpool
vpdn group PPTP-VPDN-GROUP client configuration dns 192.168.16.168
212.54.64.170
vpdn group PPTP-VPDN-GROUP client configuration wins 192.168.16.168
vpdn group PPTP-VPDN-GROUP pptp echo 60
vpdn group PPTP-VPDN-GROUP client authentication local
vpdn username z password xxxxx
vpdn enable outside
dhcpd address 192.168.16.200-192.168.16.250 inside
dhcpd lease 3600
dhcpd ping_timeout 750
username XXXXXXXX
terminal width 80
Cryptochecksum:XXXX
: end






Søg
Reklame
Statistik
Spørgsmål : 177552
Tips : 31968
Nyheder : 719565
Indlæg : 6408847
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste