Reset Iphone 4 To Factory Settings Without Passcode

after intensive research I found out that indeed the firmware of my router lacks proper static routing routines , I installed DD-WRT image, setup the routing routines en selected the "Masquerade Route" option everything works perfectly