Friday, June 13, 2014

unsupported-transceivers cisco

Here's something interesting, some Alcatel engineers had a  Alcatel SFP-T badge transceiver laying around, so I tried one in a cisco ASR9K, ASR1K and cisco 6509. It works in all devices tested.




This is very interesting that the finistar mfg'er transceivers works within  our cisco gear and even with it vendor labeled as  "Alcatel".  A similar  finistar SFP-T that looks almost 100% identical, did not btw.

Now cisco TAC and I'm sure Alcatel also will scream and cry about using some other mfg'er transceiver in their gear.



It's also surprise me that the problems I had with  NHR branded transceivers and the ASR1K

http://socpuppet.blogspot.com/2013/11/followup-unsupported-transceivers-cisco.html

and

http://socpuppet.blogspot.com/2013/10/unsupported-transceivers-cisco-asr.html

Now how much differences does finistar actually put into a cisco, alcatel, etc... transceiver is questionable?

Is this a ploy to make you buy from one "vendor-only"  even tho  that vendor does not actually make anything?   Yes, that's my belief btw


BTW; Here's the hardware inventory of our non-cisco transceiver manufactured for Alcatel by Finistar.





Now keep in mind that you must enable the hidden command to allow for unsupported transceivers.

IOS and IOS-XE  cmd = service unsupported-transceiver  from  global configuration

IOS-XR   cmd = transceiver permit pid all  from  within  each interface level configuration

NOTE: cisco will issue a warning such as;



Good luck with your unsupported transceivers. This term seems like a oxymoron ;)


Ken Felix
Freelance Network/Security Engineer
kfelix  -----a----t---- Socpuppets ---dot---com

   ^    ^
=( $ $ )=
     @
     /  \

Thursday, June 12, 2014

How to kill the dhcp daemon or any daemons on a fortigate appliance

This is my unofficial how to kill the dhcpd daemon on the fortigate. This can be used for multiple purpose and or to kill other process. Use at  your own risk and YMMV.

note: Fortinet TAC doesn't like for you to know this cmd but it will not harm anything and has limited shell access.


The  fnsysctl  is a cli command that fortinet-TAC does not speak too much  about. It allows for a single shell execution of limited unix executables ( ls, cat, ps, mount, more, grep, df, etc...). It can be a dangerous command for learning some of  the inside working of a fortigate. And if your knowledge of linux/unix is strong like mine, you can find numerous &  creative ways for using this command.



e.g ( determing my  FWF60D  linux kernel version, diskfile size and mount command  )




Okay to find and kill the dhcp process or any proc as far as that goes, you have to understand that  most process create a  "pid" ( process id ). You can use the diag sys top command to find  the top process , but I have a few tricks  that you can use to find  the one process  that 's of interest.


1: by  using the "ps" command

e.g



note: just search thru the list of running process


2:  uses the "ls"  command  against the  /var/run directory


 NOTE:  the var/run directory typically holds  the proc pid in the shape and fashion of ;

/var/run/<process daemon name>.pid

e.g



3:  by issuing  the "diag sys top 25 100"  command 





NOTE: I'm using a delay of 25 secs and 100 lines so  I can quickly scan thru most,  if not all of the  pids






Once you found the  pid file name, you can "cat" or "more" the file name of  interest;


e.g ( here I'm using the "more" command against 2  pid files )


Okay, so now that you found the pid(s) that you want to kill.

 How do you kill it ?

Will you could hire her, but that could be  a expensive and bloody encounter.



or

Use the  diag sys kill command or  even use  the fnsysctl command.

e.g ( showing various ways to kill the process and rechecking for the new pid # )



So that's how you kill a fortigate process using the cli . When ever you kill a process is great to recheck that the proc has restart and to monitor any logs entries.




 Doing this, can help ensure  a 100% functional process and the daemon is working.

My last trick & knowledge share,  this same command  ( fnsysctl ) is available on  the fortimail and with a lot more binaries available.




Ken Felix
Freelance Network /Security Engineer
kfelix   a-t  socpuppets  d-o-t  com

Wednesday, June 11, 2014

This is new ( scam artists using skype )

Nigerian Scanm artist sending via Skype






Be cautious of unsolicited request.


http://www.419eater.com/
http://en.wikipedia.org/wiki/419_scams

Ken Felix
Network & Security Engineer
kfelix  ----a---t---socpuppets ---d---o---t---com

     ^      ^
=(   -   - )=
         o
      /     \

Tuesday, June 3, 2014

A issue with access-clsss ( vrf-also ) IOS-XE multi-vrf

With multiple  vrf, the  access-class command act strange under IOS-XE, you have to enable the  access-class with the keyword of "vrf-also" in order for all VRFs to be protected by the acl.

Without the keyword, the  action is to block all access-line access


Here's my example;

note: we have a simple access-class protecting "inbound" requests

line vty 0 4
 session-timeout 10
 access-class myssh in vrf-also
 exec-timeout 30 0
 logging synchronous
 length 0
 transport input ssh
 transport output ssh



Now the  access-list that was defined was named "myssh" and allows for a limited range of sources to access the  router via ssh.

 show run | sec access-list ext     

 ip access-list extended myssh
  permit tcp 10.10.10.0 0.0.0.3 any eq 22
  permit tcp 10.10.20.0 0.0.0.3 any eq 22


So the  key wording of "vrf-also",  allows for the access class to work within all VRFs

Just something I thought I would share.


Ken Felix
Network & Security Engineer
kfelix  ----a---t---socpuppets ---d---o---t---com

     ^      ^
=(   X   X )=
          o
       /     \

Sunday, June 1, 2014

PFsense 2.1.3 upgrade

I started a upgrade from RC2.1 to  2.1.3 for my pfsense virtual-host. This went very smoothly with no problems.


Here's a few screenshot of the event.





You got to love opensource networking  ;)




Ken Felix
Network & Security Engineer
kfelix  ----a---t---socpuppets ---d---o---t---com

     ^      ^
=(   X   X )=
          o
       /     \

Using a ASR for dynamic vpn access

In this post we will look at using a  ASR1K for dynamic ipsec-vpn. The steps for the configuration are broken down in the following order


1: Craft a dynamic ip_address pool

2nd define AAA authentication parameters


note: you could use radius

Next, we start the configuration. I'm using the  group concept with PSK+xauth

Now we need some crypto ike policy and transform sets




note: I'm using  very secured ciphers in the AES suite, this is fine for iPhone/Android and Window/MACOSX devices

Okay let wrap this all up, we need to build a dynamic crypto-map and then apply the  dynamic-map into our crypto map.

note: best practices calls for the crypto map sequence # to be the  highest in your pecking order

 
              

And the last action item that we need to accomplish is how do we negoiate and authenticate the clients. These lines apply the  authentication parameters


Key Points;


Ensure the  vpn pool network is routed within your network

( diagnostics )

  •   debug crypto isa aaa
  •   debug aaa authentication
  •   show crypto session brief


Ken Felix
Network & Security Engineer
kfelix  ----a---t---socpuppets ---d---o---t---com

     ^      ^
=(   -   - )=
        o
     /     \

Saturday, May 31, 2014

Cisco IOS-XE one time passwords

Cisco has a feature that allows for you to create a  user and password and to walk away and forget about it. Its called one-time password and is simple to deploy.

here's a dialup user that I will allow access into our vpn-concentrator. He/she has a one-time user account and after the 1st successful login, the account will be exterminated and deleted

The configuration;



And here we make one login  attempt and then  exit. The 2nd login attempt, will  not be honored.



NOTE :  Keep in mind that the username will stay in the cfg, until  that  person actually logon to the router. 

If the  device is rebooted, before the configuration is saved, the username name will re-appear.



Ken Felix
Network & Security Engineer
kfelix  ----a---t---socpuppets ---d---o---t---com

     ^      ^
=(   -   - )=
         o
      /     \