New config and new logs...
Short description:
Lan1: 192.168.100.0/24 Wan1: 80.161.173.76
Lan2: 192.168.1.0/24 Wan2: 80.63.233.142
On Lan1: MT 2.9
nov/13/2005 22:40:11 by RouterOS 2.9rc7
software id = 787C-3TT
/ interface ethernet
set ether1 name="ether1" mtu=1500 mac-address=00:0C:42:04:15:41 arp=enabled
disable-running-check=yes auto-negotiation=yes full-duplex=yes
cable-settings=default speed=100Mbps comment="" disabled=no
set Wan name="Wan" mtu=1500 mac-address=00:0C:42:04:15:42 arp=enabled
disable-running-check=yes auto-negotiation=yes full-duplex=yes
cable-settings=default speed=100Mbps comment="" disabled=no
set Lan name="Lan" mtu=1500 mac-address=00:0C:42:04:15:43 arp=proxy-arp
disable-running-check=yes auto-negotiation=yes full-duplex=yes
cable-settings=default speed=100Mbps comment="" disabled=no
/ interface bridge port
set ether1 bridge=none priority=128 path-cost=10
set Wan bridge=none priority=128 path-cost=10
set Lan bridge=none priority=128 path-cost=10
/ ip pool
add name="pool1" ranges=192.168.100.33-192.168.100.99
/ ip hotspot service-port
/ ip dhcp-client
add interface=Wan add-default-route=yes use-peer-dns=yes comment=""
disabled=no
/ ip dhcp-server
add name="server1" interface=Lan lease-time=3d address-pool=pool1
bootp-support=static disabled=no
/ ip dhcp-server config
set store-leases-disk=5m
/ ip dhcp-server lease
/ ip dhcp-server network
add address=192.168.100.0/24 gateway=192.168.100.10
dns-server=193.162.153.164,193.162.146.9 comment=""
/ ip ipsec policy
add src-address=192.168.100.0/24:any dst-address=192.168.1.0/24:any
protocol=all action=encrypt level=require ipsec-protocols=esp tunnel=yes
sa-src-address=80.161.173.76 sa-dst-address=80.63.233.142 proposal=default
manual-sa=none dont-fragment=clear disabled=no
/ ip ipsec peer
add address=80.63.233.142/32:500 secret="(SECRET)" generate-policy=no
exchange-mode=main send-initial-contact=yes proposal-check=obey
hash-algorithm=md5 enc-algorithm=3des dh-group=modp1024 lifetime=1d
lifebytes=0 disabled=no
/ ip ipsec proposal
add name="default" auth-algorithms=md5 enc-algorithms=3des lifetime=30m
lifebytes=0 pfs-group=modp1024 disabled=no
/ ip dns
set primary-dns=194.239.134.83 secondary-dns=193.162.153.164
allow-remote-requests=no cache-size=2048KiB cache-max-ttl=1w
/ ip address
add address=192.168.100.10/24 network=192.168.100.0 broadcast=192.168.100.255
interface=Lan comment="" disabled=no
/ ip neighbor discovery
set ether1 discover=yes
set Wan discover=yes
set Lan discover=yes
/ ip route
/ ip firewall mangle
add chain=forward p2p=all-p2p action=mark-packet new-packet-mark=all-p2p
comment="P2P Trafik" disabled=no
add chain=forward src-address=192.168.100.33 packet-mark=all-p2p
action=mark-packet new-packet-mark=client1-p2p comment="Mark P2P for
brian" disabled=no
add chain=forward dst-address=192.168.100.33 packet-mark=all-p2p
action=mark-packet new-packet-mark=client1-p2p comment="" disabled=no
add chain=forward src-address=192.168.100.34 packet-mark=all-p2p
action=mark-packet new-packet-mark=client1-p2p comment="Mark P2P for uffe"
disabled=no
add chain=forward dst-address=192.168.100.34 packet-mark=all-p2p
action=mark-packet new-packet-mark=client1-p2p comment="" disabled=no
add chain=forward src-address=192.168.100.38 action=mark-packet
new-packet-mark=Ipvoice comment="Ip Voice Telefoni" disabled=no
add chain=forward dst-address=192.168.100.38 action=mark-packet
new-packet-mark=Ipvoice comment="" disabled=no
add chain=forward in-interface=Lan protocol=tcp dst-port=80
action=mark-connection new-connection-mark=http-con comment="HTTP Trafik"
disabled=no
add chain=forward in-interface=Wan connection-mark=http-con action=mark-packet
new-packet-mark=http comment="" disabled=no
/ ip firewall nat
add chain=srcnat out-interface=Wan src-address=192.168.100.0/24
dst-address=192.168.1.0/24 action=accept comment=" TEST IPSEC SIGURD"
disabled=no
add chain=srcnat out-interface=Wan action=masquerade comment=" SRCNAT Laver
masquerade (Router)" disabled=no
add chain=dstnat in-interface=Wan protocol=tcp dst-port=80 action=dst-nat
to-addresses=192.168.100.9 to-ports=80 comment=" DSTNAT SU/NAT HTTP"
disabled=no
add chain=dstnat in-interface=Wan protocol=tcp dst-port=21 action=dst-nat
to-addresses=192.168.100.9 to-ports=21 comment="SU/NAT FTP" disabled=no
add chain=dstnat in-interface=Wan protocol=tcp dst-port=110 action=dst-nat
to-addresses=192.168.100.9 to-ports=110 comment="SU/NAT POP3" disabled=no
add chain=dstnat in-interface=Wan protocol=tcp dst-port=25 action=dst-nat
to-addresses=192.168.100.9 to-ports=25 comment="SU/NAT SMTP" disabled=no
add chain=dstnat in-interface=Wan protocol=tcp dst-port=4662 action=dst-nat
to-addresses=192.168.100.99 to-ports=4662 comment="SU/NAT EMULE"
disabled=no
add chain=dstnat in-interface=Wan protocol=tcp dst-port=5500 action=dst-nat
to-addresses=192.168.100.99 to-ports=5500 comment="SU/NAT REAL VNC"
disabled=no
/ ip firewall connection tracking
set enabled=yes tcp-syn-sent-timeout=2m tcp-syn-received-timeout=1m
tcp-established-timeout=5d tcp-fin-wait-timeout=2m
tcp-close-wait-timeout=1m tcp-last-ack-timeout=30s
tcp-time-wait-timeout=2m tcp-close-timeout=10s udp-timeout=30s
udp-stream-timeout=3m icmp-timeout=30s generic-timeout=10m
/ ip firewall filter
add chain=input protocol=ipsec-esp action=accept comment=" INPUT ACCEPT
IPSEC" disabled=no
add chain=input src-address=192.168.1.0/24 dst-address=192.168.100.0/24
action=accept comment=" INPUT ACCEPT IPSEC" disabled=no
add chain=input protocol=tcp dst-port=137-139 action=drop comment=" INPUT
PORT 137-139 DROP" disabled=no
add chain=input protocol=tcp dst-port=445 action=drop comment="DROP PORT 445 "
disabled=no
add chain=input protocol=tcp dst-port=135 action=drop comment="DROP PORT 135"
disabled=no
add chain=input protocol=udp dst-port=135 action=drop comment="DROP UDP PORT
135" disabled=no
add chain=input connection-state=invalid action=drop comment=" INPUT Drop
invalid connection packets" disabled=no
add chain=input connection-state=established action=accept comment="Allow
established connections" disabled=no
add chain=input connection-state=related action=accept comment="Allow related
connections" disabled=no
add chain=input protocol=udp action=accept comment="Allow UDP connections"
disabled=no
add chain=input protocol=icmp action=accept comment="Allow ICMP messages"
disabled=no
add chain=input in-interface=Lan action=accept comment="Tillad alt trafik fra
lokal netvµrk" disabled=no
add chain=forward protocol=tcp dst-port=80 action=accept comment=" FORWARD
Allow HTTP" disabled=no
add chain=forward protocol=tcp dst-port=21 action=passthrough comment="ALLOW
FTP" disabled=no
add chain=forward protocol=tcp dst-port=110 action=accept comment="ALLOW POP3"
disabled=no
add chain=forward protocol=tcp dst-port=25 action=accept comment="ALLOW SMTP"
disabled=no
add chain=forward protocol=tcp dst-port=4662 action=accept comment="ALLOW
EMULE" disabled=no
add chain=forward protocol=tcp dst-port=5500 action=accept comment="ALLOW REAL
VNC" disabled=no
add chain=input protocol=tcp dst-port=1723 action=accept comment="ALLOW MS
PPTP1" disabled=no
add chain=input protocol=gre dst-port=47 action=accept comment="ALLOW MS
PPTP2" disabled=no
add chain=input action=log log-prefix="" comment="Reject and log everything
else" disabled=yes
add chain=input action=drop comment="Reject and log everything else"
disabled=no
/ queue simple
add name="Ip Voice" dst-address=0.0.0.0/0 interface=Wan parent=none
packet-marks=Ipvoice priority=5 queue=default/default limit-at=0/0
max-limit=0/0 total-queue=default disabled=no
add name="http" dst-address=0.0.0.0/0 interface=Lan parent=none
packet-marks=http priority=8 queue=default/default limit-at=0/0
max-limit=0/0 total-queue=default disabled=no
add name="queue1" dst-address=0.0.0.0/0 interface=Lan parent=none
packet-marks=client1-p2p priority=8 queue=default/default limit-at=0/0
max-limit=40000/40000 total-queue=default disabled=no
add name="queue2" dst-address=0.0.0.0/0 interface=Lan parent=none
packet-marks=client1-p2p priority=8 queue=default/default limit-at=0/0
max-limit=512000/512000 total-queue=default disabled=no
On Lan2: Netgear
Local IPSec Identifier: 80.63.233.142
Remote IPSec Identifier: 80.161.173.76
Tunnel can be accessed from: a subnet of local address
Local LAN start IP Address: 192.168.1.0
Local LAN IP Subnetmask: 255.255.255.0
Tunnel can access: a subnet of local address
Remote LAN start IP Address: 192.168.100.0
Remote LAN IP Subnetmask: 255.255.255.0
Remote WAN IP: 80.161.173.76
Secure Association: Main Mode
Perfect Forward Secrecy: Enabled
Encryption Protocol: 3DES
PreShared Key: (secret)
Keylife: 28800
IKE Lifetime: 86400
The logfile from NETGEAR: (PING FROM LAN1 TO LAN2 BY LOCAL PC ON LAN1)
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:26 - FVS318 IKE:Peer Initialized IKE Main Mode
Mon, 11/14/2005 00:34:26 - FVS318 IKE:[Test Mikrotik] RX << MM_I1 : 80.161.173.76
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:New State index:0, sno:1
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:responding to Main Mode
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:Oakley Transform 1 accepted
Mon, 11/14/2005 00:34:26 - FVS318 IKE:OAKLEY_PRESHARED_KEY/OAKLEY_3DES_CBC/MODP1024
Mon, 11/14/2005 00:34:26 - FVS318 IKE:[Test Mikrotik] TX >> MM_R1 : 80.161.173.76
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 10 seconds for #1
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:26 - FVS318 IKE:[Test Mikrotik] RX << MM_I2 : 80.161.173.76
Mon, 11/14/2005 00:34:26 - FVS318 IKE:[Test Mikrotik] TX >> MM_R2 : 80.161.173.76
Mon, 11/14/2005 00:34:26 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 10 seconds for #1
Mon, 11/14/2005 00:34:28 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:28 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:34:28 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:34:34 - FVS318 IPsec:handling event EVENT_RETRANSMIT for 50a1ad4c "Test Mikrotik" #1
Mon, 11/14/2005 00:34:34 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 20 seconds for #1
Mon, 11/14/2005 00:34:36 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:36 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:34:36 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:34:38 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:38 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:34:38 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:34:48 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:48 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:34:48 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:34:54 - FVS318 IPsec:handling event EVENT_RETRANSMIT for 50a1ad4c "Test Mikrotik" #1
Mon, 11/14/2005 00:34:54 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 40 seconds for #1
Mon, 11/14/2005 00:34:56 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:56 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:34:56 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:34:58 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:34:58 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:34:58 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:35:08 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:35:08 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:35:08 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:35:18 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 00:35:18 - FVS318 IPsec:loglog[3] *#hahaha.... next payload type of ISAKMP Identification Payload has an unknown value: 192
Mon, 11/14/2005 00:35:18 - FVS318 IPsec:probable authentication (preshared secret) failure: malformed payload in packet
Mon, 11/14/2005 00:35:34 - FVS318 IPsec:handling event EVENT_RETRANSMIT for 50a1ad4c "Test Mikrotik" #1
Mon, 11/14/2005 00:35:34 - FVS318 IPsec:max number of retransmissions (2) reached STATE_MAIN_R2
End of Log ----------
The logfile from MT
22:34:31 ipsec,ike,info queuing SA request, phase 1 with peer 80.63.233.142
will be established first
22:34:31 ipsec,ike,info initiating phase 1, starting mode Identity Protection
(local 80.161.173.76:500) (remote unknown)
22:34:31 ipsec,info ipsec packet discarded: src=192.168.100.99 dst=
192.168.1.2
22:34:31 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:34:34 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:34:36 ipsec,info ipsec packet discarded: src=192.168.100.99 dst=
192.168.1.2
22:34:41 ipsec,info ipsec packet discarded: src=192.168.100.99 dst=
192.168.1.2
22:34:42 ipsec,ike,info retransmitted packet, ignoring (remote unknown)
22:34:47 ipsec,info ipsec packet discarded: src=192.168.100.99 dst=
192.168.1.2
22:35:02 ipsec,ike,info retransmitted packet, ignoring (remote unknown)
22:35:02 ipsec,ike,info dequeuing SA request to 80.63.233.142, phase 1 wait
timed out
22:35:34 ipsec,ike,info phase 1 negotiation timed out
The logfile from MT (PING FROM LAN2 TO LAN1 FROM LOCAL PC ON LAN2)
22:53:46 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:53:46 ipsec,ike,info responding phase 1, starting mode Identity Protection
(local 80.161.173.76:500) (remote80.63.233.142:500)
22:53:47 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:53:49 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:53:57 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:16 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:16 ipsec,ike,info responding phase 1, starting mode Identity Protection
(local 80.161.173.76:500) (remote80.63.233.142:500)
22:54:17 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:18 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:19 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:27 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:47 ipsec,ike,info received ISAKMP packet from 80.63.233.142:500, phase
1, Identity Protection
22:54:48 ipsec,ike,info phase 1 negotiation timed out
The logfile from Netgear (PING FROM LAN2 TO LAN1 FROM LOCAL PC ON LAN2)
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:call ipsecdoi_initiate
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:New State index:0, sno:6
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:Initiating Main Mode
Mon, 11/14/2005 01:03:30 - FVS318 IKE:[Test Mikrotik] Initializing IKE Main Mode
Mon, 11/14/2005 01:03:30 - FVS318 IKE:[Test Mikrotik] TX >> MM_I1 : 80.161.173.76
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 10 seconds for #6
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:03:30 - FVS318 IKE:[Test Mikrotik] RX << MM_R1 : 80.161.173.76
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:Oakley Transform 3 accepted
Mon, 11/14/2005 01:03:30 - FVS318 IKE:OAKLEY_PRESHARED_KEY/OAKLEY_3DES_CBC/MODP1024
Mon, 11/14/2005 01:03:30 - FVS318 IKE:[Test Mikrotik] TX >> MM_I2 : 80.161.173.76
Mon, 11/14/2005 01:03:30 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 10 seconds for #6
Mon, 11/14/2005 01:03:32 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:03:32 - FVS318 IKE:[Test Mikrotik] RX << MM_R2 : 80.161.173.76
Mon, 11/14/2005 01:03:32 - FVS318 IKE:[Test Mikrotik] TX >> MM_I3 : 80.161.173.76
Mon, 11/14/2005 01:03:32 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 10 seconds for #6
Mon, 11/14/2005 01:03:40 - FVS318 IPsec:handling event EVENT_RETRANSMIT for 50a1ad4c "Test Mikrotik" #6
Mon, 11/14/2005 01:03:40 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 20 seconds for #6
Mon, 11/14/2005 01:03:42 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:03:42 - FVS318 IPsec:loglog[3] discarding duplicate packet; already STATE_MAIN_I3
Mon, 11/14/2005 01:03:52 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:03:52 - FVS318 IPsec:loglog[3] discarding duplicate packet; already STATE_MAIN_I3
Mon, 11/14/2005 01:04:00 - FVS318 IPsec:handling event EVENT_RETRANSMIT for 50a1ad4c "Test Mikrotik" #6
Mon, 11/14/2005 01:04:00 - FVS318 IPsec:inserting event EVENT_RETRANSMIT, timeout in 40 seconds for #6
Mon, 11/14/2005 01:04:02 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:04:02 - FVS318 IPsec:loglog[3] discarding duplicate packet; already STATE_MAIN_I3
Mon, 11/14/2005 01:04:12 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:04:12 - FVS318 IPsec:loglog[3] discarding duplicate packet; already STATE_MAIN_I3
Mon, 11/14/2005 01:04:22 - FVS318 IPsec:Receive Packet address:0x1397478 from 80.161.173.76
Mon, 11/14/2005 01:04:22 - FVS318 IPsec:loglog[3] discarding duplicate packet; already STATE_MAIN_I3
Mon, 11/14/2005 01:04:40 - FVS318 IPsec:handling event EVENT_RETRANSMIT for 50a1ad4c "Test Mikrotik" #6
Mon, 11/14/2005 01:04:40 - FVS318 IPsec:max number of retransmissions (2) reached STATE_MAIN_I3. Possible authentication failure: no acceptable response to our first enc
End of Log ----------
REGARD BRIAN