---
title: "Allow DHCP through IPTables"
canonical: "https://techwiki.co.uk/linux/allow-dhcp-through-iptables"
author: "Adam Birds"
article_type: "documentation"
published: "2026-08-10T23:29:11.105Z"
updated: "2026-08-10T23:29:11.106Z"
categories: ["Linux","Networking"]
tags: []
---To allow DHCP through IPTbales and IP6Tables run the following commands:

```

iptables -I INPUT -i eth2 -p udp --dport 67:68 --sport 67:68 -j ACCEPT
ip6tables -I INPUT -i eth2 -p udp --dport 67:68 --sport 67:68 -j ACCEPT
service iptables save
service ip6tables save

```
