+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 31
Internet Related/Filtering/Firewall Thread, Smoothwall - Save configuration from CLI in Technical; Are there Linux guys around here ? How should I save changes in configuration from cli ? for instance, changing ...
  1. #1

    Join Date
    Jul 2013
    Posts
    16
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Smoothwall - Save configuration from CLI

    Are there Linux guys around here ?
    How should I save changes in configuration from cli ?
    for instance, changing ifconfig or ethtool settings.
    I've already logged in as root.

    thx
    Last edited by odysiuos; 7th July 2013 at 12:15 PM.

  2. #2

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,042
    Thank Post
    590
    Thanked 1,032 Times in 791 Posts
    Blog Entries
    15
    Rep Power
    467
    Any changes you make to network settings require a restart of the networking stack; easiest way to do that and best practice anyway is to restart the machine.

  3. #3

    Join Date
    Jul 2013
    Posts
    16
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'm not asking how to APPLY a change, but how to SAVE a change.

  4. #4

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,042
    Thank Post
    590
    Thanked 1,032 Times in 791 Posts
    Blog Entries
    15
    Rep Power
    467
    With all due respect if you need to ask that, perhaps you need to be learning a little more about linux rather than diving in and making changes.

    Firstly, what text editor are you using? If you're new, and using vi then check out Vi Cheat Sheet

  5. #5
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,354
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Quote Originally Posted by odysiuos View Post
    I'm not asking how to APPLY a change, but how to SAVE a change.
    Press save?

    They are only text config files, the moment you save, its..... saved. It's not like a switch where you could wr mem etc, the moment the text file is saved its done.

    If you are asking how to save in vi, then it would be by pressing :wq!


    If you edit network settings, then usually its service network restart

  6. #6

    Join Date
    Jul 2013
    Posts
    16
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Yes, I don't have any experience with Linux. I'm a Cisco guy. I usually deal with the gui when I configure a smoothie. however sometimes I have to use the cli. So I'm looking for a command equivalent to "copy run start" or "wr mem" on Cisco ASA.
    Last edited by odysiuos; 7th July 2013 at 12:31 PM.

  7. #7

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    519
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    15
    hello @odysiuos welcome to edugeek.

    most changes you make in text files will be saved by the act of exiting the text editor and saving, if you save and exit it will be saved. personally i prefer nano Ctrl + X to exit press Y to save or VI press esc and type wq: <enter>

    changes made via ifconfig or ethtool aren't persistent on linux, you need to make the change in the actual configuration file for it to be persistent across reboots / service restarts.

    the location varies from linux distro
    e.g. on mint

    /etc/network/interfaces

    e.g. on centos 1
    /etc/sysconfig/network-scripts/ifcfg-eth0


    Where it is on smoothwall, i'm not a 100%. I asked and they were a bit evasive about, possibly understandably if your going to expect them to support the product. Personally i haven't needed to make interface changes from the cli, the gui has seemed to cover what i need so far.

    what exactly are you trying to achieve ? It might be possible from the GUI, which would be a better option from the support point of view.

  8. #8
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,354
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Quote Originally Posted by odysiuos View Post
    Yes, I don't have any experience with Linux. I'm a Cisco guy. I usually deal with the gui when I configure a smoothie. however sometimes I have to use the cli. So I'm looking for a command equivalent to "copy run start" or "wr mem" on Cisco ASA.

    Confused now are you using linux/smoothwall or an ASA? They are quite different!

  9. #9
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,354
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Quote Originally Posted by odysiuos View Post
    Yes, I don't have any experience with Linux. I'm a Cisco guy. I usually deal with the gui when I configure a smoothie. however sometimes I have to use the cli. So I'm looking for a command equivalent to "copy run start" or "wr mem" on Cisco ASA.
    Ah apologies just re-read what you said.

    Linux doesn't have an equivalent, to make changes just edit file thes. The settings, however, will not take effect until you restart the services you altered.

  10. #10

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    519
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    15
    Quote Originally Posted by Jamo View Post
    The settings, however, will not take effect until you restart the services you altered.
    unless he is making changes with ifconfig in which case the opposite is the case

  11. #11

    Join Date
    Jul 2013
    Posts
    16
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    thank you all for the fast reply.
    i'm not sure if I'm understanding all that terms "text file", "editor" & "vi".
    usually I log in on the utm-smoothwall using Putty by entering the ip address:222. then I enter root/smoothwall as username/password. then I'm in mode root@smoothwall#
    I'm trying to fix the duplex/speed of an interface instead of auto mode.
    dpulex = full
    speed = 100

  12. #12
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,354
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Quote Originally Posted by odysiuos View Post
    thank you all for the fast reply.
    i'm not sure if I'm understanding all that terms "text file", "editor" & "vi".
    usually I log in on the utm-smoothwall using Putty by entering the ip address:222. then I enter root/smoothwall as username/password. then I'm in mode root@smoothwall#
    I'm trying to fix the duplex/speed of an interface instead of auto mode.
    dpulex = full
    speed = 100

    Try:

    vi /etc/network/interfaces

    This should open a file with the interface config in it, if it doesn't then it will show an empty file and you will have to look elsewhere for the interface config files.

    If it is the config file, quit by typing :wq! this will exit vi.

    run:

    cp
    /etc/network/interfaces /home/interfaces.backup

    That will backup the original

    Next edit the interfaces file as you please using the guides here:
    /etc/network/interfaces Ubuntu Linux networking example





  13. #13

    Join Date
    Jul 2013
    Posts
    16
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I could find /etc/network/interfaces.

    but my colleague advises me to do the following:

    cd /etc/actions/secondboot/
    vi 99ethernetsettings

    press insert and copy these lines:

    #!/bin/sh
    ethtool -s ethC speed 100 duplex full autoneg off
    chmod +x 99ethernetsettings

    I'm a little bit confused.


  14. #14

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    519
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    15
    Quote Originally Posted by odysiuos View Post
    I could find /etc/network/interfaces.


    its different on different distro's, i did say earlier its not there on smoothwall. unfortunately i'm not sure where it is on smoothwall.

    try

    # find / -name interfaces
    or
    # find / -name *eth0

    to see if you get any results
    @tom_newton might have an answer on a different way of doing this, I would have a look at our smoothwall box but I can't until monday unfortunately.

  15. #15

    Join Date
    Jul 2013
    Posts
    16
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    sorry I was wrong about /etc/network/interfaces.
    sm17.JPG

SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Eco-friendly Space Saving PCs from SCL Online
    By Elky in forum Our Advertisers
    Replies: 8
    Last Post: 24th November 2008, 01:20 PM
  2. Stopping a user from saving locally?
    By Small_Pig_Dancing in forum Windows
    Replies: 20
    Last Post: 22nd October 2008, 11:11 PM
  3. Replies: 0
    Last Post: 11th June 2008, 11:47 AM
  4. Saving video files from BBC new website pages.
    By tosca925 in forum How do you do....it?
    Replies: 3
    Last Post: 11th June 2007, 11:22 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •