Highlights? OmpF porin binds antibiotics in the extracellular and periplasmic pore vestibules ? MD simulations show that ionic current through OmpF is blocked by bound ampicillin ? Carbenicillin binding alters ion selectivity of OmpF but not total ionic current ? Disruption of binding increases the susceptibility of E. coli for antibiotics