Question : asa static nat

we are replacing our PIX with an ASA and im trying to get the NAT to work properly with little luck. below is the config for both my PIX first and ASA second. I can ping and connect to any of the addresses on the static nat list on the pix. when I set up a similar rule on the ASA I can not connect. I can ping the public IP on the interface but thats it. am I missing something? even when I set up the same rules on the ASA it didn't want to work.



static (inside,outside) xxx.xxx.219.124 10.10.4.124 netmask 255.255.255.255
static (inside,outside) xxx.xxx.219.244 10.10.4.104 netmask 255.255.255.255
static (inside,outside) xxx.xxx.219.125 10.10.4.25 netmask 255.255.255.255
static (inside,outside) xxx.xxx.219.252 10.10.4.1 netmask 255.255.255.255
static (inside,outside) xxx.xxx.219.250 10.10.10.29 netmask 255.255.255.255
static (inside,outside) xxx.xxx.219.251 10.10.10.216 netmask 255.255.255.255
static (inside,outside) xxx.xxx.219.254 10.10.10.81 netmask 255.255.255.255

nat (inside) 1 10.10.0.0 255.255.0.0
nat (inside) 1 0.0.0.0 0.0.0.0

global (outside) 1 xxx.xxx.219.254 netmask 255.255.255.255


interface Ethernet0
 nameif WAN
 security-level 0
 ip address xxx.xxx.219.210 255.255.255.0



---------------------------------------------------------------
global (outside) 1 xxx.xxx.219.151

nat (inside) 1 10.10.0.0 255.255.0.0

static (inside,outside) xxx.xxx.219.211 10.10.10.29 netmask 255.255.255.255

interface Ethernet0/1
 description external
 nameif outside
 security-level 0
 ip address xxx.xxx.219.150 255.255.255.0

Answer : asa static nat

» I will try to find another way.

The snippet below is inspired by your own code in the question body. Perhaps this is the sort of coding you were looking for?

(°v°)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
    Dim sSQL2 As String
    Dim oRST2 As ADODB.Recordset
    Dim oConnect2 As ADODB.Connection
    
    Set oRST2 = New ADODB.Recordset
    Set oConnect2 = New ADODB.Connection

    sSQL2 _
        = " SELECT Sum([Quantité_assignée])" _
        & " FROM [Distribution employé]" _
        & " WHERE Période = '" & ComDateDisponible.Text & "'" _
        & "   AND Description_du_produit = '" & Des_prod.Text & "'"

    oConnect2.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _
        "Data Source=" & Form4.txtBaseDe.Text & ";"

    oRST2.Open sSQL2, oConnect2

    MsgBox oRST2.Fields(0).Value
Random Solutions  
 
programming4us programming4us