Assuming you are Internet connected via your wireless interface wlan0 and you want to supply internet via net0

Start your DHCPd to hand out address on 192.168.0.x with the following configuration:

    x220:~$ cat /etc/dhcpd.conf 
    # /etc/dhcpd.conf

    allow booting;
    allow bootp;

    option domain-name-servers;
    default-lease-time 86400;
    max-lease-time 604800;
    subnet netmask {
     filename "pxelinux.0";        # the PXELinux boot agent
     option subnet-mask;
     option broadcast-address;
     option routers;

Script it like so as root:

ifconfig net0 up
#/etc/rc.d/dhcp4 start  # old initscripts way
systemctl start dhcpd4  #systemd way
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

Furthermore you can try iptraf-ng to monitor the bridge.


Powered by Vanilla PHP feedback form