sinshiva
Very Senior Member
/jffs/scripts/nat-start
/jffs/configs/dnsmasq.conf.add
chmod a+rx /jffs/scripts/*
Code:
#!/bin/sh
#
# lan ports 1-3 assigned to vlan1
robocfg vlan 1 ports "1 2 3 8t"
# port 4 to vlan4
robocfg vlan 4 ports "4 8t"
#
vconfig add eth0 4
#
ifconfig vlan4 192.168.85.1 netmask 255.255.255.0 up
#
iptables -I FORWARD -i vlan4 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i vlan4 -o br0 -m state --state NEW -j DROP
iptables -I FORWARD -i br0 -o vlan4 -m state --state NEW -j DROP
iptables -I INPUT -i vlan4 -j ACCEPT
/jffs/configs/dnsmasq.conf.add
Code:
interface=vlan4
dhcp-range=vlan4,192.168.85.100,192.168.85.200,255.255.255.0,86400s
dhcp-option=vlan4,3,192.168.85.1
dhcp-option=vlan4,6,192.168.85.1,0.0.0.0
chmod a+rx /jffs/scripts/*
Last edited: