configureset interfaces ethernet eth0 address 192.168.123.123/24set service sshset service httpscommit
install-system
configureset interfaces ethernet eth0 address 192.168.123.123/24set service sshset service httpscommitsavesudo apt-get updatesudo apt-get dist-upgrade
set interfaces ethernet eth1 pppoe 10set interfaces ethernet eth1 pppoe 10 user-id mameset interfaces ethernet eth1 pppoe 10 password sibaset interfaces ethernet eth1 pppoe 10 mtu 1438run connect interface pppoe10run show interfacescommitsave
set service nat rule 10 source address 192.168.123.0/24set service nat rule 10 outbound-interface pppoe10set service nat rule 10 type masqueradecommitshow service natsave
/sbin/iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -s ${_SRC_NETWORK} -d ${_DST_NETWORK} -j TCPMSS --set-mss ${_MSS_SIZE}/sbin/iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -s ${_SRC_NETWORK} -d ${_DST_NETWORK} -j TCPMSS --clamp-mss-to-pmtu
/sbin/iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
set system host-name inuset system domain-name nekoset system login user vyatta authentication plaintext-password momongaset system name-server 202.248.0.72set system gateway-address 192.168.123.254
set service dns forwarding systemset service dns forwarding listen-on eth0
set firewall name Allow_Establishedset firewall name Allow_Established rule 10set firewall name Allow_Established rule 10 action acceptset firewall name Allow_Established rule 10 state established enableset interfaces ethernet eth1 pppoe 10 firewall in name Allow_Establishedset interfaces ethernet eth1 pppoe 10 firewall local name Allow_Established
set service dhcp-server shared-network-name Neko subnet 192.168.123.0/24 start 192.168.123.100 stop 192.168.123.199set service dhcp-server shared-network-name Neko subnet 192.168.123.0/24 default-router 192.168.1.254set service dhcp-server shared-network-name Neko subnet 192.168.123.0/24 dns-server 123.123.123.123
sudo bashtcpdump
#set service nat rule 20 type destination#set service nat rule 20 inbound-interface pppoe10#set service nat rule 20 protocol tcp#set service nat rule 20 destination port 80#set service nat rule 20 inside-address address 192.168.123.80