Using manual IP address only for specific networks

For my home network I use DHCP with manual address because I have to forward some ports specifically to my computer. However this causes problems when connecting to other networks. For some reason this setting stays active even when using other networks. Therefore, I can't connect to say my school network because the setting has to be set to plain DHCP. Is there a way to use manual IP address only for specific networks?

System Preferences > Network > Locations and add a location for your home with its manual settings. Add a location for other DHCP locations. Then when you want to connect at another DHCP location select that location from your locations dropdown.

Similar Messages

  • Cellular data only for specific apps

    Is there a way by which i can enable cellular data only for specific apps? Lets suppose i want only mail and viber to run on cellular. So how do i enable cellular network only for viber and mail

    Hello all,
    I have been using the iPhone 4S for about a year and I never had problems untill a few days back. Since about a week, my 3G settings for applications installed automatically reset.
    Path >> iPhone screen >> Settings >> Mobile(Cellular) >> Use Mobile Data For >> "List of all apps installed"
    Against each application, you have an option to either enable / disable the mobile data usage:
    Eg:
    App Store          (swipe left to disable || swipe right to enable)
    Contacts          (swipe left to disable || swipe right to enable)
    Facebook          (swipe left to disable || swipe right to enable)
    Facetime          (swipe left to disable || swipe right to enable)
    Weather          (swipe left to disable || swipe right to enable)
    You Tube          (swipe left to disable || swipe right to enable)
    etc...
    Problem:
    If I don't want You Tube to use mobile data, I would normally swipe left to disable thus the application will not start / stream any music if its on 3G/4G. Since a few days, whenever I disable the option for any app... go back to the main screen and recheck the settings, I see its enabled again!
    The error I see when I start the app is:
    MOBILE DATA IS TURNED OFF FOR "YOU TUBE"
    You can turn on mobile data for this app in settings
    <Settings>     <OK>
    When I go back to settings... I see the option is enabled.
    Now I dont know what and how this happened all of a sudden. I have tried resetting the network settings for my iPhone, and it has not helped me.
    My iPhone is updated to OS 7.0.4 and all apps are updated.
    Anyone can help me on this error and how do I fix this?
    FYI... I have no problems connecting to WiFi at all!

  • Showing Sub-Totals only for Specific Column in PowerView

    Hi,
    Is there a way of showing the sub-totals only for specific columns in a PowerView Matrix?
    I am only aware of showing the sub-totals for all or non of the columns.
    Thanks and Regards,
    Justin

    Hi Justin,
    According to your description, you want to get sub-totals specific columns within columns group. Right?
    In this scenario, we can use IIF() function in expression to achieve your goal. The expression will only return the total value when the column value is a specific value, otherwise we can make it return nothing. Try the following expression:
    IIF(Fields!Column.Value="[specific value]",Sum(Fields!Total.Value),nothing)
    We have tested this scenario in our local environment. Here are screenshots for your reference:
    Reference:
    Expression Examples (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SCCM 2012- How to limit a collection membership only for specific count of machines

    How to limit a collection membership only for specific count of machines

    As I said you can use where SMS ID like %1 and see how many machines that gets you. If it's not enough do where SMS ID like %1 or SMS ID like %2. Keep adding a digit until you get ~5000. It won't be perfect though.
    John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

  • How to use Flash recovery area only for flashback database feature

    I would like to use flash recovery area only for flashback database feature, which means, flash recovery area will store only flashback logs.
    I dont want to use that file system for any other files, like archive log files, database backups, control file copies, multiplex redo log, etc
    is it possible? I want to use this feature only for flashback database option and hence i dont want to disturb any existing configuration in my database
    including backup jobs. Is it required to store archive redo log files also in flash recovery area to use the flashback database feature?
    I certainly can't afford to have a copy of entire database in this file system as size of my DB is more than the flash recovery area file system I have.
    Thanks
    Sarayu

    user13312943 wrote:
    Aman,
    I think i was not clear in my question. Let me try again
    My only requirement is to use flashback database feature (or be prepared to use if required). I dont want to create a large file system to use this FRA to store all these files. Out of all the files being stored here copy of data files seems to be consuming more space. I see these files are classified as transient and permanent files. I am okay with permanent files. I fear that this file system may consume more space if i store backup files on disk. I want database backups to go to tapes, not to the FRA disk. Is it possible?
    Thanks for your reply
    Okay, well in that case you can use RMAN and push the backups to the tape drives. FLB logs would be stored on the FRA.
    Aman....

  • How I can use my galaxy II only for camera and wifi while I am traveling out of states without any extra charge?

    How I can use my galaxy II only for camera and  while I am traveling out of states without any extra charge?

    i think you can put the device in airplane mode then selectively turn on wifi...
    before you travel you could try this and check your cellular usage on the settings ! mobile data display. you might be able to turn mobile data / cellular radio off that way as well.

  • Where can I read the proxy settings Firefox chose, when configured to use "Auto-detect proxy settings for this network"?

    I would like to set my system network proxy settings to those, Firefox chose. Firefox is configured to use "Auto-detect proxy settings for this network" and this works fine. How can I read out the settings Firefox chose, so I can adapt these system?

    Hello Richard,
    Download MozBackup and make a backup of your bookmarks and passwords. Uninstall firefox and remove ALL folders with the name "Firefox".
    Install Firefox and restore your bookmarks and passwords. Now you should have a fresh install so you have to make all settings again.

  • HT5622 I have given my old iphone to my daughter however cant seem to disconnect the two phones. I use icloud. What do i do to stop her using my email address, no for facetime, sharing info, contacts and photos????

    I have given my old iphone to my daughter however cant seem to disconnect the two phones. I use icloud. What do i do to stop her using my email address, no for facetime, sharing info, contacts and photos????

    To wipe phone
    Turn off imessage in settings/messages
    Turn off Facetime in settings/Facetime
    Delete icloud account in settings/icloud
    Erase all data and settings in settings/general/reset
    Delete the phone from your profile in https://supportprofile.apple.com if you registered your phone there

  • Mail: How to check an account ONLY from specific Network Location?

    I use multiple macs, and use my .mac account to synchronize mail accounts, rules, smart mailboxes, signatures, etc.
    However, I'd actually like to specifically NOT check certain accounts on some machines.
    Even though the account settings are synced, I thought I might be able to take advantage of "Network Locations" to create specific network locations like HOME or WORK and thusly create a combination of mail and network location preferences that would solve my particular need. The idea being that it would allow me to specify in mail's settings (somehow) that a particular mail account should only check the server for messages if the current network location is actually WORK, and if the network location was HOME, it should just not check.
    Some other apps (ie: Snerdware's Groupcal) will check the network location setting and not perform checks if the current location is not the expected one.
    So the question is, is there some way to make Mail.app 2.1.3 on Tiger do this?

    30 messages displayed is the default, but you can change that.  On your email page, under "settings" is an option to change the number of messages per page.  One  option is "no limit."

  • Can't use ssh publickey, but only for a single host

    I've been using publickeys for a long time to connect my laptop to my server, but lately I can't connect when I'm in this place only.
    It is the same key and it works perfectly, except when I'm in this specific network. And it doesn't seem to be a firewall issue, because the remote server actually logs the attempt.
    I'm all out of ideas. Nothing I try has any effect.
    ssh -vvv
    OpenSSH_6.1p1, OpenSSL 1.0.1e 11 Feb 2013
    debug1: Reading configuration data /home/<user>/.ssh/config
    debug1: /home/<user>/.ssh/config line 14: Applying options for <host>
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to <host> port 443.
    debug1: Connection established.
    debug3: Incorrect RSA1 identifier
    debug3: Could not load "/home/<user/.ssh/id_rsa" as a RSA1 public key
    debug1: identity file /home/<user>/.ssh/id_rsa type 1
    debug1: identity file /home/<user>/.ssh/id_rsa-cert type -1
    debug1: identity file /home/<user>/.ssh/id_dsa type -1
    debug1: identity file /home/<user>/.ssh/id_dsa-cert type -1
    debug1: identity file /home/<user>/.ssh/id_ecdsa type -1
    debug1: identity file /home/<user>/.ssh/id_ecdsa-cert type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1
    debug1: match: OpenSSH_6.1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.1
    debug2: fd 3 setting O_NONBLOCK
    debug3: put_host_port: <host>:443
    debug3: load_hostkeys: loading entries for host "<host>:443" from file "/home/<user>/.ssh/known_hosts"
    debug3: load_hostkeys: found key type RSA in file /home/<user>/.ssh/known_hosts:1
    debug3: load_hostkeys: loaded 1 keys
    debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],ssh-rsa
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: [email protected],[email protected],ssh-rsa,[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: [email protected],zlib,none
    debug2: kex_parse_kexinit: [email protected],zlib,none
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_setup: found hmac-md5
    debug1: kex: server->client aes128-ctr hmac-md5 [email protected]
    debug2: mac_setup: found hmac-md5
    debug1: kex: client->server aes128-ctr hmac-md5 [email protected]
    debug1: sending SSH2_MSG_KEX_ECDH_INIT
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: <host key>
    debug3: put_host_port: <host>:443
    debug3: put_host_port: <host>:443
    debug3: load_hostkeys: loading entries for host "<host>:443" from file "/home/<user>/.ssh/known_hosts"
    debug3: load_hostkeys: found key type RSA in file /home/<user>/.ssh/known_hosts:1
    debug3: load_hostkeys: loaded 1 keys
    debug3: load_hostkeys: loading entries for host "<host>:443" from file "/home/<user>/.ssh/known_hosts"
    debug3: load_hostkeys: found key type RSA in file /home/<user>/.ssh/known_hosts:11
    debug3: load_hostkeys: loaded 1 keys
    debug1: Host '<host>:443' is known and matches the RSA host key.
    debug1: Found key in /home/<user>/.ssh/known_hosts:1
    debug1: ssh_rsa_verify: signature correct
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug2: key: /home/<user>/.ssh/id_rsa (0x1d61230)
    debug2: key: /home/<user>/.ssh/id_dsa ((nil))
    debug2: key: /home/<user>/.ssh/id_ecdsa ((nil))
    debug1: Authentications that can continue: publickey
    debug3: start over, passed a different list publickey
    debug3: preferred publickey,keyboard-interactive,password
    debug3: authmethod_lookup publickey
    debug3: remaining preferred: keyboard-interactive,password
    debug3: authmethod_is_enabled publickey
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /home/<user>/.ssh/id_rsa
    debug3: send_pubkey_test
    debug2: we sent a publickey packet, wait for reply
    and this is the log from journalctl
    Mar 27 09:38:29 xen sudo[29258]: pam_unix(sudo:session): session closed for user root
    Mar 27 09:38:32 xen sshd[29196]: debug1: Forked child 590.
    Mar 27 09:38:32 xen sshd[590]: Set /proc/self/oom_score_adj to 0
    Mar 27 09:38:32 xen sshd[590]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
    Mar 27 09:38:32 xen sshd[590]: debug1: inetd sockets after dupping: 3, 3
    Mar 27 09:38:32 xen sshd[590]: Connection from <host> port 54330
    Mar 27 09:38:32 xen sshd[590]: debug1: Client protocol version 2.0; client software version OpenSSH_6.1
    Mar 27 09:38:32 xen sshd[590]: debug1: match: OpenSSH_6.1 pat OpenSSH*
    Mar 27 09:38:32 xen sshd[590]: debug1: Enabling compatibility mode for protocol 2.0
    Mar 27 09:38:32 xen sshd[590]: debug1: Local version string SSH-2.0-OpenSSH_6.1
    Mar 27 09:38:32 xen sshd[590]: debug1: permanently_set_uid: 99/99 [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: SSH2_MSG_KEXINIT sent [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: SSH2_MSG_KEXINIT received [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: kex: client->server aes128-ctr hmac-md5 [email protected] [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: kex: server->client aes128-ctr hmac-md5 [email protected] [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: SSH2_MSG_NEWKEYS sent [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: expecting SSH2_MSG_NEWKEYS [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: SSH2_MSG_NEWKEYS received [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: KEX done [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: userauth-request for user <user> service ssh-connection method none [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: attempt 0 failures 0 [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: PAM: initializing for "<user>"
    Mar 27 09:38:32 xen sshd[590]: debug1: PAM: setting PAM_RHOST to "<host>"
    Mar 27 09:38:32 xen sshd[590]: debug1: PAM: setting PAM_TTY to "ssh"
    Mar 27 09:38:32 xen sshd[590]: debug1: userauth-request for user <user> service ssh-connection method publickey [prea
    Mar 27 09:38:32 xen sshd[590]: debug1: attempt 1 failures 0 [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: test whether pkalg/pkblob are acceptable [preauth]
    Mar 27 09:38:32 xen sshd[590]: debug1: temporarily_use_uid: 1000/100 (e=0/0)
    Mar 27 09:38:32 xen sshd[590]: debug1: trying public key file /home/<user>/.ssh/authorized_keys
    Mar 27 09:38:32 xen sshd[590]: debug1: fd 4 clearing O_NONBLOCK
    Mar 27 09:38:32 xen sshd[590]: debug1: matching key found: file /home/<user>/.ssh/authorized_keys, line 1
    Mar 27 09:38:32 xen sshd[590]: Found matching RSA key: <key>
    Mar 27 09:38:32 xen sshd[590]: debug1: restore_uid: 0/0
    Mar 27 09:38:32 xen sshd[590]: Postponed publickey for <user> from <host> port 54330 ssh2 [preauth]
    And it just hangs there forever.
    If I try to use the same key to log in to other servers (one debian and an openWRT router) it works just fine from this location. This key also works to log in to the archlinux server if I'm on other networks, such as my college's or my other workplace.
    Any help is very appreciated. As it stands, I have to log in to my debian server and from there I have to log in to my archlinux server. I wish I could just log in directly as I've done many times in the past.

    Hi,
    I don't know whether you've solved the issue in the meantime (your issue was three months ago), but I thought I'd post this reply just to let other people who run into this problem know what happened to me and how I solved it.
    I had exactly the same problem as you had. The logging in stopped at exactly the same point in the debugging trace. I too was experiencing the problem from a single network (multiple hosts on the network could not log onto a remote server). Logging into the remote server from other locations (even with the same laptop) worked fine.
    The problem turned out to be an MTU problem in my case. I was running an OpenVPN connection to the remote server, and I was logging into it over the VPN. No problems, usually, except for the fact that the network that I was logging in from is a glass fiber network using PPPoE. The MTU on that link is 1460 bytes, not the 1500 bytes that is more common. I had to reconfigure the OpenVPN interfaces (using the OpenVPN configuration options "mssfix 1360", "fragment 1360" and "tun-mtu 1400" on both sides of the connection) to use a smaller MTU on the OpenVPN tunX interface, and everything started working normally again.
    Obviously, the MTU was wrong for every connection going over the VPN, but the OpenVPN tunnel was somewhat resistant to this mistake because I turned on LZO compression, which made most packets that were transmitted over the OpenVPN interface (tunX) that were using an MTU of 1500 bytes smaller than the maximum allowed on the actual link. Anyway, the lesson is: set up your MTUs on your links correctly. And turn on "mssfix" so that if you're routing remote hosts' traffic over the OpenVPN tunnel, their TCP stacks will be made aware of the actual MTU of the link.
    Hope this helps somebody,
    Sven

  • Any kind of bandwith limiting or priority for specific network services ?

    I tried IPQoS to limit the bandwith for a ftp-service. This is very well documented in the IPQoS Administration Guide, but it seems to have no effect at all in my lan. The ftp-transfer still consumes all
    available bandwith and any other interactive traffic like ssh is slow as hell. I think this is due to the fact that i do not have a diffserv capable router. Is it correct that IPQoS in Solaris 9 only marks packages but don't do anything else ?
    My kstat output says:
    "kstat -m tokenmt"
    module: tokenmt instance: 10
    name: tokenmt statistics class: meterftp
    crtime 171043.6888275
    epackets 0
    green_bits 369888
    green_packets 196
    red_bits 205079496
    red_packets 18160
    snaptime 174628.7017885
    yellow_bits 0
    yellow_packets 0
    Nearly all packets are marked red and the target for red packets is markAF31 with dscp_map{0-63:26}.
    Strange to see that "kstat -m dscpmk" shows no results at all. This is possible a bug or not well
    documented in the IPQoS Administration Guide.
    Is there any (other) way to priorize interactive traffic or limit/shape the bandwith for specific services without additional Hardware in my network ?

    You may have already resolved your problem, but here is what I've been using -- I'm just recently (like two days ago) trying IPQoS.
    As you can see from my code I really restricted bandwith so I could see the reaction, and tested with a specific machine so it wouldn't mess with other stuff. Turn on ftp hash and watch it crawl. I've only tested outgoing so far, but will also test incoming.
    We are not using DiffServ on our routers, so I just drop 'red' packets. I'm using yellow just to play and get stats.
    Am looking for tools to read the flowacct data when I came across your post.
    good luck!
    fmt_version 1.0
    # TEST configuration
    # Monitor and gather ftp statistics from pilasvp101 (only)
    # this host: ssrv194bw (163.241.195.249)
    # this host: pilasrp101 (163.241.205.147)
    # remote hosts: pilasvp101 (163.241.195.240)
    action {
    module ipgpc
    name ipgpc.classify
    params {
    global_stats TRUE
    class {
    name ftp_traffic
    enable_stats TRUE
    next_action meter_ftp
    filter {
    name ftp_in
    sport ftp
    saddr 163.241.195.240
    direction LOCAL_IN
    ip_version V4
    class ftp_traffic
    filter {
    name ftp_data_in
    sport ftp-data
    saddr 163.241.195.240
    direction LOCAL_IN
    ip_version V4
    class ftp_traffic
    filter {
    name ftp_out
    dport ftp
    daddr 163.241.195.240
    direction LOCAL_OUT
    ip_version V4
    class ftp_traffic
    filter {
    name ftp_data_out
    dport ftp-data
    daddr 163.241.195.240
    direction LOCAL_OUT
    ip_version V4
    class ftp_traffic
    # 10 Mbps, or 10000000 bits per second.
    # 100 Mbps, or 100000000 bits per second.
    # 1000 Mbps, or 1000000000 bits per second.
    # USED BELOW:
    # committed_rate - 100000 bits per second = 0.10 Mbps.
    # committed_burst - 100000 bits per second = 0.10 Mbps.
    # peak_rate - 150000 bits per second = 0.15 Mbps.
    # peak_burst - 150000 bits per second = 0.15 Mbps.
    # committed_rate - allowable transmission rate
    # committed_burst - allowable burst size. Defines how many outgoing packets
    # of a particular class can pass onto the network at the
    # committed rate.
    # peak_rate - peak rate in bits per second
    # peak_burst - peak or excess burst size in bits. The peak burst parameter
    # grants to a traffic class a peak-burst size that exceeds
    # the committed rate.
    # color_aware - turns on color-aware mode for tokenmt, which expects the
    # bits to have already been modified for DSCP
    # color_map - defines an integer array that maps DSCP values to
    # green, yellow, or red.
    # red_action - action to take when traffic flow exceeds peak rate
    # yellow_action - the packet causes the flow to exceed its committed_rate
    # but not its peak rate (committed_burst). This must be used
    # if 'peak_rate' is defined.
    # green_action - action to take for conforming traffic flow
    # global_stats - enable metering stats for the class
    action {
    module tokenmt
    name meter_ftp
    params {
    global_stats TRUE
    committed_rate 100000
    committed_burst 100000
    peak_rate 150000
    peak_burst 150000
    red_action_name red_accounting
    yellow_action_name yellow_accounting
    green_action_name green_accounting
    color_aware FALSE
    # timer - scanning interval in milliseconds (default 15 seconds)
    # timout - a flow "times-out" when its packets are no longer seen
    # by the IPQoS system in milliseconds (default 60 seconds)
    # max_limit - maximum number of entries a flow table can contain
    action {
    module flowacct
    name red_accounting
    params {
    global_stats TRUE
    timer 10000
    timeout 10000
    max_limit 2048
    next_action drop
    action {
    module flowacct
    name yellow_accounting
    params {
    global_stats TRUE
    timer 10000
    timeout 10000
    max_limit 2048
    next_action continue
    action {
    module flowacct
    name green_accounting
    params {
    global_stats TRUE
    timer 10000
    timeout 10000
    max_limit 2048
    next_action continue
    }

  • [CC] How to perform a script "foo_beforeSave.htm" only for specific site?

    Since a long time I use a script for automatic text replacements which perform with each save command.
    The script sits in that folder:
    C:\Users\myusername\AppData\Roaming\Adobe\Dreamweaver CC\de_DE\Configuration\Commands\foo_beforeSave.htm
    It works for all documents of all sites.
    The source code (the regex rule is just an example) of the script you find below.
    My question:
    I like to perform a script like this only for a specific site.
    I'm not a programmer. So I don't know where to place the script to reach that target. Or how I have to edit the source code of the script.
    Is there anybody who could help me with that please?
    I would appreciate it a lot. Thanks
    <!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
    <!-- MENU-LOCATION=NONE -->
    <html>
    <head>
    <title></title>
    <script src="../Shared/Common/Scripts/dwscripts.js"></script>
    <script>
    function canAcceptCommand(){
        return true;
    function getFileName(url) {
      var index = url.lastIndexOf('/');
      if (index != -1) retVal = url.substring(index + 1);
      else retVal = url;
      return retVal;
    function runCmd(){
        var dom = dw.getDocumentDOM();
        dom.synchronizeDocument();
        var path = dw.getDocumentPath('document');
        if(getFileName(path) != 'foo_beforeSave.htm'){
            var docEl = dom.documentElement;
            var tempDoc = docEl.outerHTML;
            tempDoc = tempDoc.replace(/&bdquo;/g,'„');
            tempDoc = tempDoc.replace(/&#8222;/g,'„');
            tempDoc = tempDoc.replace(/&ldquo;/g,'“');
            tempDoc = tempDoc.replace(/&#8220;/g,'“');
            tempDoc = tempDoc.replace(/&rdquo;/g,'”');
            tempDoc = tempDoc.replace(/&#8221;/g,'”');
            docEl.outerHTML = tempDoc;
    </script>
    </head>
    <body onLoad="runCmd();">
    </body>
    </html>

    Well, the posted script is a full working one.
    I just search for a way to limit the range of the script to the actual site.
    Therefore it is unimportant, which regex is in the example.

  • Use Time Machine on ONLY one specific folder?

    I wish to use the Time Machine function to backup only one specific folder on my computer, the DROPBOX folder.
    How can I implement this and inform Time Machine of my choice?
    According to my first investigations, I only have the choice to select folders to EXCLUDE. This makes the setup of Time Machine unconfortable.
    Any advice?

    I agree with Jeffrey Jones2 above .
    Makes no sense to backup the dropbox folder alone, Dropbox It is "cloud storage" and has its own backup. Dropbox keeps a snapshot every time you save a file. You can preview and restore.
    If you go to the DROPBOX website you can view deleted file from the trash can icon (see below.)
    From there it is a matter of Restore the file. This would work for accidentally deleted files,  there maybe a 30day archive limit so read the small print for details.
    If it is imperative to your backup plan,  just drag and drop  your folder to any external storage device, just not the Time Machine HD/partition.

  • [yaourt] Keep sources/build files only for specific AUR packages

    Hi,
    By default, packages are build in BUILDDIR=/tmp/makepkg, which itself usually is a virtual dir in RAM. I generally like this behaviour, so I don't wanna change the BUILDDIR variable to point to a dir on the harddisk, but for a few packages I'd welcome the sources/build dir to be kept, e.g. for *-git packages to reduce build time on consecutive updates. Is there a neat Arch-way to tell the makepkg system to use a different dir (i.e., one on the harddisk) for specific packages? It'd be even greater to be able to use wildcards as well, so I could just enable this option for all *-git packages.
    And as I said, I generally like the idea of building in RAM so the trick to just let BUILDDIR point to a dir on my hdd and put a command in some shutdown-script to delete all but the directories ending in -git wouldn't be perfect
    Cheers
    Last edited by epinephrine (2013-01-27 16:25:17)

    Oh you're right in that BUILDDIR isn't set by default. I use yaourt for building AUR packages, so this is a yaourt related question, oops. I'll ask in the appropriate forum...
    Some packages are only available as git packages, and that for a good reason. Some git repository maintainers follow the good working principle to always have their master branch stable and deployable and do development and testing in respective branches to keep master clean. E.g. I maintain 2 git packages on the AUR, and there are no other "stable" options, also as git makes sense for these packages.
    And sometimes you just need a more up2date version

  • How to authorise users only for specific GL accounts

    Hi friends,
    My client does not want his endusers to see all the GL accounts' balances, they want to restrict them from looking at certain GL a/cs .From my security person I came to know that we cant restrict them only for certain GL accounts, it could eithre be all or none.
    I dont agree with that.
    Please guide if you know anyhitng about it.
    Thanks
    Shefford

    You can use the Authorization Group field in the G/L account master record (field SKB1-BEGRU, free text field) for this purpose. You can then use authorization object F_BKPF_BES to manage the different authorizations.
    Click <a href="http://sap.ittoolbox.com/groups/technical-functional/sap-acct/authorisation-based-on-gl-accounts-727160">here</a> for more information.
    Points are appreciated.
    Kind regards,
    Lodewijk

Maybe you are looking for