I have try to do this for a week now and just cannot get access to the internet.
The approach is to try and expose the Linksys WRT3200ACM directly to the internet with a Draytek Vigor130 (uk) acting as the modem. The Vigor130 is plugged into the WAN port on the WRT3200ACM.
I have tried basing the configuration on guide - https://openwrt.org/docs/guide-user/network/wan/isp-configurations
The Vigor130 is running in stock config with just the password changed.
The reading I have done seems to indicate that this should just work as comes with the tag already in place.
Today I am running a network layout which has issues but gets me internet. This uses the vodaphone router plug into the LAN. The vodaphone router has the DHCP turned off.
On the interface Luci page I can see updates on the WAN. If I set it to eth1 I get the following fault code.
`Unknown error (USER_REQUEST)`
followed a few seconds later by:
`Error: Connection attempt failed`
With the config at <option ifname 'dsl0.101'> I get the error that no device is connected.
I can connect to the Vigor 130 by plugging it directly into the PC on port 192.168.2.1
What I have not figured out is how to get access to it via the LAN.
Another side note is that in the research I have done people show the modem IP / MAC in >System>Status but I cannot see it there.
I know I am asking basic questions but I am tearing my hair out and close to giving up.
Could one of you kind people advise the correct config files.
Once I am confident I have the setup correct then the next step is vodaphone.....but I think the issue is my config files
Network config file (vodaphone user name * password replaced with XXXXX)
onfig interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'xxxxxxxxxx'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.2'
option gateway '192.168.1.1'
list dns '1.1.1.1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '5t 3 2 1 0'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
option ports '6t 4'
config dsl 'dsl'
option annex 'b'
option tone 'a'
config interface 'wan'
option ifname 'dsl0.101'
option proto 'pppoe'
option ipv6 '0' # Vodafone UK has no IPv6. Replace '1' to enable
option mtu '1492'
option username 'XXX@broadband.vodafone.co.uk'
option password ' XXXXXX'
Firewall config file
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'WAN'
list network 'wan'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fc00::/6'
option dest_ip 'fc00::/6'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config redirect
option dest_port 'xxxxxx'
option name 'xxxxxx'
option src_dport 'xxxx'
option target 'DNAT'
option dest_ip 'xxxxxxxxxxxxxxxxxxxxxx'
option dest 'lan'
option src 'wan'
option enabled '0'