Apr 21

The CLI command

port a1 show will show the ADSL line statistics

bridge set lantolanforwarding disable Will disable lan to lan bridge

Other Commands

bridge set lantolanforwarding disable

port ethernet set p1vlanmember 0×03
port ethernet set p2vlanmember 0×03
port ethernet set p3vlanmember 0×04
port ethernet set p4vlanmember 0×08
port ethernet set vlan enabled

ethernet add transport ethernet1 ethernet1
bridge add interface ethernet1
bridge attach ethernet1 ethernet1

ethernet add transport ethernet3 ethernet3
bridge add interface ethernet3
bridge attach ethernet3 ethernet3

bridge add vlan dmzvlan 2 dmzvlan
bridge add vlaninterface dmzvlan untagged ethernet1
bridge set interface ethernet1 pvid 2

bridge add vlan wifivlan 10 wifivlan
bridge add vlaninterface wifivlan untagged wireless
bridge add vlaninterface wifivlan untagged wireless_wds
bridge set interface ethernet3 pvid 10

ip add interface ipdmz 192.168.2.126 255.255.255.128
ip set interface ipdmz tcpmssclamp enabled
bridgevlan add transport bvlaneth1 2
ip interface ipdmz attachbridgevlan bvlaneth1

ip add interface ipwifi 192.168.3.62 255.255.255.192
ip set interface ipwifi tcpmssclamp enabled
bridgevlan add transport bvlanipwifi 10
ip interface ipwifi attachbridgevlan bvlanipwifi

dhcpserver disable
dhcpserver add interface ipdmz
dhcpserver add interface ipwifi
dhcpserver enable
dhcpserver add subnet DMZ 192.168.2.0 255.255.255.128 192.168.2.64 192.168.2.125
dhcpserver add subnet WIFI 192.168.3.0 255.255.255.192 192.168.3.30 192.168.3.60
dhcpserver set subnet DMZ hostisdefaultgateway enabled
dhcpserver set subnet DMZ hostisdnsserver enabled
dhcpserver set subnet WIFI hostisdefaultgateway enabled
dhcpserver set subnet WIFI hostisdnsserver enabled

firewall set securitylevel userdefined
# following allows NAT for wifi interface on “internal” LAN
security add interface ipwifi internal

nat disable nat1
nat enable intnat ipwan internal
nat enable dmznat ipwan dmz

firewall disable

written by NewsFeeder \\ tags: ,

Jan 26

Came accross this information for the settings for 3 Mobile USB dongle on the Acer Aspire

You will need to update the Acer first before this will work so if its new out of the box you will need to connect it to the internet and run the update program or vist this link

http://support.acer-euro.com/drivers/notebook/as_one_110.html

and download the drivers and applications/ huawei081126.sh

this is ‘Mobile partner’. save it to disk and then install it into your acer.
you also need to take your modem to another computer and update the firmware from mobile broadband rocks as above,

I used a vista PC to do this and it worked fine. Xp works as well.

Run the reset prog in the modems files awell, just in case, then stick the updated modem back into your acer with mobile partner installed.

1) Shut down the Aspire
2) Plug your modem into the USB port
3) Switch on the Aspire
4) On the ‘Connect’ Tab click on ‘Mobile Partner’
5) It should now detect the modem
6) Click ‘Tools’ ‘Options’
7) Click ‘New’
8) Give your profile a name
9) Select ‘Static’ under the APN tab
10) in the APN box enter three.co.uk
11) In ‘Access Number’ enter *99#
12) In ‘User Name’ enter three
13) Password is three
14) Authentication Protocol is ‘CHAP’
15) Click ‘Save’

Read more ….. Via [linux.com]

written by NewsFeeder \\ tags: , ,

Apr 12

Cron Tab

Linux Comments Off

Cron can appear to be challenging at first, but with the proper help, you will find it easy and very helpful to automate tasks on your website.

Cron is simply a way to run any program/script on your web hosted account once a day, once a week, once a month, every Tuesday and Thursday, etc.

It is helpful in automatically performing web site maintenance, automating scripts that generate new sales/coupons/etc.  It can even help establish a back routine for your web site.

Cron is composed of five fields.  The following chart details each field.

Minute Hour Day of Month Month Day of Week
0 = 0

Such as in 1:00

1 = 1

Such as in 1:01etc.

* = Every Hour
0 = 12am
1 = 1am
2 = 2am
12 = 12pm
13 = 1pm

etc.

* = Every Day of the Month
1 = 1st Day of the Month

etc.

* = Every  Month
1 = Jan
2 = Feb

etc.

* = Every Day
0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday

Common examples include…

  minute hour day of month month day of week
To perform a daily task at 2 am 0 2 * * *
To perform a weekly task on Sunday at 2 am 0 2 * * 0
To perform a monthly task on the 1st of each month at 2 am 0 2 1 * *
To perform a task each Tuesday AND Friday at 2 am 0 2 * * 2,5

The following chart indicates what each number or symbol represent.

Please note:

  • Set the cron to perform the task ONLY as frequently as you expect you need the task to be performed.
  • Do NOT set the cron to perform something everyday and that only needs to be done once a month or every other week.  This wastes valuable CPU time for your website and for others.  

written by TMP \\ tags: ,

Bad Behavior has blocked 77 access attempts in the last 7 days.