mirror of
https://github.com/devplayer0/docker-net-dhcp
synced 2024-10-30 09:20:28 +00:00
Document a possible need for an iptables rule
This commit is contained in:
parent
866bb1b5cd
commit
ea1d36b0b1
@ -36,6 +36,9 @@ $ sudo ip link set eth0 up
|
||||
# Attach your network card to the bridge
|
||||
$ sudo ip link set eth0 master my-bridge
|
||||
|
||||
# If your firewall's policy for forwarding is to drop packets, you'll need to add an ACCEPT rule
|
||||
$ sudo iptables -A FORWARD -i my-bridge -j ACCEPT
|
||||
|
||||
# Get an IP for the host (will go out to the DHCP server since eth0 is attached to the bridge)
|
||||
$ sudo dhcpcd my-bridge
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user