1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VLAN with DD-WRT HELP!

Discussion in 'DD-WRT Firmware' started by lodogg, Mar 31, 2007.

  1. lodogg

    lodogg Network Guru Member

    I have been working on this for some time I have SSH and OpenVPN working but I can't for the life of me get Port 4 segrated on a seprate Vlan:\ Are there any known bugs setting up the trunked ports via the web gui should I even use it?

    Firmware: DD-WRT v23 SP3 (03/22/07) vpn

    Here is my current setup:

    Code:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Virtual Local Area Network (VLAN) (Web GUI)
    1 2 3 - LAN
    W 4   - NONE
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    nvram set vlan0ports="1 2 3 5*"
    nvram set vlan2hwname=et0
    nvram set vlan2ports="4 5"
    nvram set rc_firewall="
    ifconfig vlan2 192.168.2.1 netmask 255.255.255.0
    iptables -I INPUT -i vlan2 -j ACCEPT
    iptables -I FORWARD -i vlan2 -m state --state NEW -j ACCEPT
    iptables -I INPUT 1 -p udp --dport 666 -j ACCEPT
    iptables -A FORWARD -p tcp -d 192.168.2.10 --dport 21 -j ACCEPT"
    nvram commit
    reboot 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Startup:
    ifconfig vlan2 192.168.2.1 netmask 255.255.255.0
    
    openvpn --mktun --dev tap0
    brctl addif br0 tap0
    ifconfig tap0 0.0.0.0 permisc up
    echo "
    -----BEGIN OpenVPN Static key V1-----
    
    key
    
    -----END OpenVPN Static key V1-----" > /tmp/static.key
    ln -s /usr/sbin/openvpn /tmp/myvpn
    /tmp/myvpn --dev tap0 --secret /tmp/static.key --port 666 --proto udp --verb 1 --comp-lzo --daemon
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    DNS Mas:
    interface=vlan2
    interface=vlan1
    interface=vlan0
    interface=eth1
    dhcp-range=10.22.1.100,10.22.1.105,1h
    dhcp-range=192.168.2.100,192.168.2.105,1h
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Code:
    cat /var/log/messages | grep dnsmasq
    Jan  1 00:00:14 router daemon.warn dnsmasq[136]: warning: interface eth1 does not currently exist
    Jan  1 00:00:14 router daemon.warn dnsmasq[136]: warning: interface vlan0 does not currently exist
    Jan  1 00:00:14 router daemon.warn dnsmasq[136]: warning: interface vlan1 does not currently exist
    Jan  1 00:00:14 router daemon.warn dnsmasq[136]: warning: interface vlan2 does not currently exist
    
    Thanks,
    -LO
     

Share This Page