Hi
I am seeking your advice on the setup of: Lintrack As A LAN Gateway And An OpenVPN Bridge which posted at
http://www.howtoforge.com/lintrack_l...openvpn_bridge.
I have failed to setup as per the procedures given.
I have setup two x86 PC hosts, with at 512MB of RAM and 9GB of storage space, two ethernet cards and did not install WiFi card.
I installed only the Lintrack-mini-2.0 on both hosts.Hosts rt1 and rt2 are our routers running Lintrack. Both of them have Internet connection, (rt1 via SDSL and rt2 via SDSL modems), a public IP address available on eth0 interface and a Local Area Network behind as follow:
Host Via Addr Type IP Address Gateway IP
rt1 SDSL modem Public 203..xxx.xxx.171/28 203.xxx.xxx.161
rt2 ADSL modem NAT 192.168.yyy.yyy/24 192.168.yyy.1
Host Local Address
rt1 192.168.1.1
rt2 192.168.1.2
NB: Not wireless was setup.
I have formatted the drive on both system and installed as fresh.
Below shown the rt1 configuration:
fcc
cd sys
set hostname rt1.lan
set hostip 192.168.1.1
Configure eth0 interface:
cd / net if eth
add +if eth0
cd eth0
set descr "Internet uplink"
add ip +addr main
set ip main addr 230.xxx.xxx.171/28
The LAN bridge:
cd ..
add +if eth1
cd .. br
add +if br0
cd br0
set descr "LAN bridge"
add +if eth1
add ip +addr main
set ip main addr 192.168.1.1/24
Default route and DNS server:
cd / net
set route quickgw 203.xxx.xxx.161
add dns +servers 192.169.34.181
The firewall with two zones - "internet":
cd fw
add +zone internet
cd internet
add +matches uplink
set uplink if eth0
set srv forwarding to
set actions masq true
...and "lan":
cd ..
add +zone lan
cd lan
add +matches bridge
set bridge if br0
cd srv
set forwarding on igmp true dhcp true dns true
cd .. actions
set clampmss true
Finally - we enable dnsmasq as DNS cache and DHCP server:
cd / srv dnsmasq
set boot true
set dhcp true auth true from 192.168.1.50 to 192.168.1.150
Below shown the rt2 configuration:
fcc
cd sys
set hostname rt1.lan
set hostip 192.168.1.1
Configure eth0 interface:
cd / net if eth
add +if eth0
cd eth0
set descr "Internet uplink"
add ip +addr main
set ip main addr 230.xxx.xxx.171/28
The LAN bridge:
cd ..
add +if eth1
cd .. br
add +if br0
cd br0
set descr "LAN bridge"
add +if eth1
add ip +addr main
set ip main addr 192.168.1.1/24
Default route and DNS server:
cd / net
set route quickgw 192.168.yyy.1
add dns +servers 203.120.90.40
The firewall with two zones - "internet":
cd fw
add +zone internet
cd internet
add +matches uplink
set uplink if eth0
set srv forwarding to
set actions masq true
...and "lan":
cd ..
add +zone lan
cd lan
add +matches bridge
set bridge if br0
cd srv
set forwarding on igmp true dhcp true dns true
cd .. actions
set clampmss true
Finally - we enable dnsmasq as DNS cache and DHCP server:
cd / srv dnsmasq
set boot true
set dhcp true auth true from 192.168.1.151 to 192.168.1.250
I have manually enable basic networking as per your procedures:
cd /etc/rc.d
./rc.firewall restart
./rc.eth eth0 start
./rc.eth eth1 start
./rc.br br0 start
./rcS.d/S40staticrt
As mentioned:
This should give you access to both machines from Internet and wired LAN.
I failed to accesss to both machines from the internet and wired LAN.
Pls advice.
Thank You
Eddiequekl
Recent comments
1 day 6 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 20 hours ago
1 day 22 hours ago
2 days 12 hours ago
2 days 13 hours ago