Showing posts with label Linux Hacks. Show all posts
Showing posts with label Linux Hacks. Show all posts

How to perform the Tuning of a Linux Box


So what you are supposed to do whe the word "tuning of linux" comes to your nerves. Well, lets explore this one and start by opening the /etc/sysctl.conf  file, which stores the kernel parameters. Here is the example of this file.
 
Image from book
# Kernel sysctl configuration file for Red Hat Linux.

# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) for
# more details.

# Controls IP packet forwarding.
net.ipv4.ip_forward = 0

# Controls source route verification.
net.ipv4.conf.default.rp_fliter = 1

kernel.sysrq = 1

kernel.core_uses_pid = 1

#net.ipv4.tcp_ecn = 0

kernel.grsecurity.fifo_restrictions = 1
kernel.grsecurity.linking_restrictions = 1

# Audit some operations.
kernel.grsecurity.audit_mount=1
kernel.grsecurity.signal_logging=1
#kernel.grsecurity.suid_logging=1
kernel.grsecurity.timechange_logging=l
kernel.grsecurity.forkfail_logging=1
kernel.grsecurity.coredump = 1

# Lock all security options.
#kernel.grsecurity.grsec_lock = 1
Image from book

I'll consider the function of the parameters saved in the file, using as an example the net.ipv4.tcp_ecn parameter. This is a path, relative to the /proc/sys directory, to the tcp_ecn file, namely: /proc/sys/net/ipv4/tcp_ecn. Execute the following command to view the contents of the file:

cat /proc/sys/net/ipv4/tcp_ecn
The system will display 0 or 1, which is the value of this parameter.
You can change the value manually, but it's more convenient to do this by executing the following command:

sysctl -w paramater_name = new_value
The same command can be used to view the value of the kernel parameter:

sysctl parameter_name
For example, the value of the net.ipv4.tcp_ecn parameter, which is stored in the /proc/sys/net/ipv4/tcp_ecn file, is displayed as follows:

sysctl net.ipv4.tcp_ecn
The values of most parameters are Boolean, meaning they can be either 0 (disabled) or 1 (enabled).
The following are the parameters that should be changed. If they are not in the sysctl.conf file, they should be added to it.
  • net.ipv4.icmp_echo_ignore_broadcasts — When this parameter is enabled, the system ignores broadcast ICMP echo packets.

  • net.ipv4.icmp_echo_ignore_all — When this parameter is enabled, all ICMP echo packets are ignored. You can use this parameter if you don't want to fool around with the firewall. Prohibiting echo-request packets reduces the traffic, albeit not by much, and makes ineffective any attacks based on using ping packets.

  • net.ipv4.conf.*.accept_redirects — This parameter controls accepting router-redirection messages.
The asterisk character is a wild card and stands for any directory name. There can be several subdirectories in the net/ipv4/conf directory, one for each network interface. There should be at least four such subdirectories in your system:
  • all — Contains configuration files for all interfaces
  • default — Holds the default values
  • eth0 — Holds configuration files for the first network card
  • lo — Holds configuration files for the loopback interface
The asterisk indicates that the parameter must be set for all interfaces whose parameter files are stored in the subdirectories of the net/ipv4/conf directory. In most cases, the all directory can be substituted for the asterisk, but sometimes all existing subdirectories have to be specified.
  • net.ipv4.conf.*.secure_redirects — When set, this enables ICMP redirect messages to be accepted only for gateways listed in the default gateway list. It is advisable to enable this parameter only if there is more than one router in your network; otherwise, it should be disabled.

  • net.ipv4.conf.*.send_redirects — This parameter allows a computer acting as a router to send ICMP redirect messages to other hosts. If there is more than one router in the network, it is advisable to enable this parameter, so that you can distribute the workload among the routers and not try to route all traffic through the main gateway.

  • net.ipv4.conf.*.accept_source_route — This parameter controls whether source-routed packages should be accepted or declined. I already mentioned that such packets can be used to bypass your firewall; thus, you should disable this parameter.

  • net.ip_always_defrag — When set, all incoming packets are defragmented. I already explained how the firewall can be bypassed using fragmented packets. It just happens that the firewall checks only the first fragment of the packet and considers the rest of the fragments allowed if the first one passes the check. When this parameter is set, all incoming packets are defragmented, thus making bypassing the firewall using this method impossible.

  • net.ipv4.ipfrag_low_thresh — This specifies the minimum amount of memory allocated to reassemble fragmented packets. The higher this value, the fewer memory-allocation manipulations necessary. The default value is 196608. Setting this parameter too high will cause extra memory to be allocated and may result in the server running out of resources for processing data. It is advisable to leave the default value.

  • net.ipv4.ipfrag_high_thresh — This specifies the maximum amount of memory allocated to reassemble fragmented IP packets. The default value is 262144. If this value is exceeded, the operating system starts tossing out incoming fragmented packets. In this way, a server can be flooded with trashy fragmented messages causing it to no longer react to fragmented packets.

  • net.ipv4.ipfrag_time — This indicates the time in seconds to keep an IP packet fragment in memory. The default value is 30 seconds. This is too much, because during this time hackers can flood the entire cache. In case of an attack on the system, the value should be lowered to 20 or even 10 seconds.
  • net.ipv4.tcp_syncookies — This controls whether to send out SYN cookies when the SYN queue of a socket overflows. It is advisable to enable this parameter to ward off SYN flood attacks.
These are some of the main kernel parameters. There are too many of them for each to be considered in this book. I advise you to consult the pertinent documentation for information on parameters not included in the preceding overview.

5:43 AM by Shubham Mittal · 0

How to Shutdown SUID and SGID Doors for better security


If you are an administrator or a security specialist, you should know your system inside and out. You already know that one of the potential security problems is SUID or SGID bits. You have to clear these bits for all programs that you are not using. But how can you find programs that have these bits set? Use the following command:

find / \( -perm -02000 -o -perm -04000 \) -ls
This command will find all files that have 02000 or 04000 rights, which corresponds to the SUID or SGID bits set. The following is an example of the command's execution:

130337  64 -rwsr-xr-x   1 root root   60104  Jul  29 2002 /bin/mount
130338  32 -rwsr-xr-x   1 root root   30664  Jul  29 2002 /bin/umount
130341  36 -rwsr-xr-x   1 root root   35040  Jul  19 2002 /bin/ping
130365  20 -rwsr-xr-x   1 root root   19072  Jul  10 2002 /bin/su
The most dangerous thing security-wise in this list is that all of the programs have root permissions and can be executed by a user or a group member. There are programs with SUID and SGID bits set that belong to other users in the system, but most have the root ownership.

If you do not use a program, either delete it or clear the bits. If you think that there are no unnecessary programs in your system, think again. Perhaps, there is something you can do without. For example, if a program is not a must for a server, its SUID bit can be cleared.

I can surely say that this can enhance the security on the linux box, ya..

neways, i guess u like the post. Enjoy hacking, Enjoy HAckton.


Any comments or suggestions are always welcomed. You can be in direct touch with me at shubham@hackplanet.in .



5:35 AM by Shubham Mittal · 0

Secure Web Servers with Mod_Security


Even though the security of a Web server depends largely on the scripts run on it and the programmers who write these scripts, a server can be protected independently of these factors. An excelent solution to dis problem is a free Apache module called mod_security.
 
The mod_security module can be downloaded from the www.modsecurity.org site. Installing the module allows new request-filtering directives to be specified in the httpd.conf file. The most interesting of them are the following:
  • SecFilterEngine On — Enables the request filtering mode.
  • SecFilterCheckURLEncoding On — Checks the validity of the URL encoding.
  • SecFilterForceByteRange 32 126 — Specifies to use characters from the particular range only. There are quite a few control characters (e.g., carriage return and line end) whose codes are less than 32. Most of them are invisible but require the corresponding key presses to be processed. How can such a character be entered into a URL string? This can be done using their codes. For example, the end-of-line character is entered in a URL by typing %13. In this case, a URL cannot contain character codes less than 32 and greater than 126.
  • SecAuditLog logs/audit_log — Specifies the log file, in which the audit information is to be stored.
  • SecFilterDefaultAction "deny,log,status:406" — Specifies the default action. In this case, it is prohibition.
  • SecFilter xxx redirect:http://www.Webcreator.com — Provides for redirection. If the rules have been met, the user is redirected to www.webcreator.com.
  • SecFilter yyy log,exec:/home/apache/report-attack.pl — Launches a script. If the filter is triggered, the /home/apache/report-attack.pl script will be executed.
  • SecFilter /etc/password — Prohibits referencing the /etc/passwd file in user requests. Referencing the /etc/shadow file can be prohibited in the same way.
  • SecFilter /bin/ls — Prohibits users from accessing commands. In this case, access to the ls command is prohibited, which can be used to view contents of directories if a script contains a bug. Access to such commands as cat, rm, cp, and ftp should also be prohibited.
  • SecFilter "\.\./" — Prohibits dots in URLs. A classic attack is carried out by placing dot characters in a URL.
  • SecFilter "delete [[: space: ]]+from" — Prohibits the delete...s from text, which is most often used in SQL queries to delete data. This string is used frequently in SQL injection-type attacks. In addition, I recommend setting the following three filters:
    • SecFilter "insert [[: space: ]] +into" — Prohibits the string used in SQL queries for adding data.
    • SecFilter "select.+from" — Prohibits the string used in SQL queries for reading data from a database.
    • SecFilter "<(.|\n)+>" and SecFilter "<[[:space:]]*script"— Protects against cross-Site Scripting (XSS) attacks.
The preceding are the main methods that can be used to enhance the security of your Web server. Server networks can also be protected in this way. Additional information can be obtained from the developer's Web site.

5:32 AM by Shubham Mittal · 0

Install Backtrack In Ubuntu



Backtrack is one of the most top rated Live Linux Distributions (meaning you can run straight from the CD). Backtrack is focused on penetration testing, and comes pre-packed with many applications to analyse and test your LAN, Wifi, Bluetooth... the list continues.

Well, Many of the time i used backtrack, but most oftenly i found myself to do sum extra things in order to use it like an ordinary Linux Diostro. n for all the same, i had find a method to use backtrack in our very own and most popular distro, ubuntu. Just follow these simple steps.

First of all add this to your /etc/apt/sources.list

deb http://repo.offensive-security.com/dist/bt4 binary/
Now in order to import the Backtrack GPG key and to update the sources:
wget http://repo.offensive-security.com/dist/bt4/binary/public-key && sudo apt-key add public-key && sudo apt-get update
Cool  ;) ??

Now you had got all the new Backtrack applications ready to install. You can find these applications in your Synaptic Package Manager, under the sections BackTrack - Web (for example). If you are wanting to install all of the new applications quickly, you can run the following command:

links -dump http://repo.offensive-security.com/dist/bt4/binary/ | awk '{print $3}' | grep -i deb | cut -d . -f 1 > backtrack.txt

This command will use the links text browser to grab a complete list of packages and store them into the file backtrack.txt. Each application will then be installed one by one. As there are 182 files, it may take a long time , so better get ready with it and get a little multitasking :P

I Guess, yuou enjoyed this one. Have a nice time. Feel free to ask any confusion..

Enjoy Hacking, Enjoy Hackton.

2:32 AM by Shubham Mittal · 0

List Of Currently Detected Rookits


A rootkit contains a set of tools and replacement executables for many of the operating system's critical components, used to hide evidence of the attacker's presence and to give the attacker backdoor access to the system.

Rootkits require root access to to install, but once set up, the attacker can get root access back at any time.


  • For More Info About ROOKITS, Click Here.

    But most of the times, a Sound administrator woudl catch them, very easily with tools available in the market.


  • The following rootkits, worms and LKMs are currently detected:
    01. lrks, lrk3, lrk4, lrk5, lrk6 (and variants);
    02. Solaris rootkit;
    03. FreeBSD rootkit;
    04. torn (and variants);
    05. Ambient's Rootkit (ARK);
    06. Ramen Worm;
    07. rh[67]-shaper;
    08. RSHA;
    09. Romanian rootkit;
    10. RK17;
    11. Lion Worm;
    12. Adore Worm;
    13. LPD Worm;
    14. kenny-rk;
    15. Adore LKM;
    16. ShitC Worm;
    17. Omega Worm;
    18. Wormkit Worm;
    19. Maniac-RK;
    20. dsc-rootkit;
    21. Ducoci rootkit;
    22. x.c Worm;
    23. RST.b trojan;
    24. duarawkz;
    25. knark LKM;
    26. Monkit;
    27. Hidrootkit;
    28. Bobkit;
    29. Pizdakit;
    30. torn v8.0;
    31. Showtee;
    32. Optickit;
    33. T.R.K;
    34. MithRa's Rootkit;
    35. George;
    36. SucKIT;
    37. Scalper;
    38. Slapper A, B, C and D;
    39. OpenBSD rk v1;
    40. Illogic rootkit;
    41. SK rootkit.
    42. sebek LKM;
    43. Romanian rootkit;
    44. LOC rootkit;
    45. shv4 rootkit;
    46. Aquatica rootkit;
    47. ZK rootkit;
    48. 55808.A Worm;
    49. TC2 Worm;
    50. Volc rootkit;
    51. Gold2 rootkit;
    52. Anonoying rootkit;
       


    Hopes you guys Found it interesting. 

    Enjoy Hackign Enjoy Hackton

    8:59 PM by Shubham Mittal · 0

    How To Password Protect Your Linux Box (OS) With GRUB


    GRUB, the Only bootloader for Linux OS, as NTLDR works in windows..
    here , the basic idea for Securing the Linux box wiht GRUB is, we implies sum security on GRUB itself..The MOst basic Phase in Loading Of An Operating System.
     
    However , Gettin bypassed with GRUb is also not that much difficult, its as easy as Burning a MATCH STICk, bt guys, i wud tell u that somehow later.
    So wt the basic idea is, If you don't want someone booting your machine without permission, you can add a password to your GRUB entries. You can add a password only to specific entries if you wish; this will require a user to enter a password before loading only those boot entries you protect. This can be useful when done on your Recovery Mode entries, which bring up a passwordless root login by default.

    To get started, let's first encrypt the password we want to use. Open up a terminal and enter the grub command. This brings up a grub shell. In this shell, enter the md5crypt command. When prompted, type in the password you want on your grub entries. (Don't worry, this won't write anything to your files!) After pressing Enter, you will be given an encrypted password string. Copy the string to your clipboard. Enter quit to exit the grub shell and return to bash.

    Code:
    GNU GRUB  version 0.95  (640K lower / 3072K upper memory)
    
     [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename. ]
    
    grub> md5crypt
    
    Password: *************
    Encrypted: $1$w7Epf0$vX6rxpozznLAVxZGkcFcs.
    
    grub>
    Now that we have an encrypted password, it's time to add it to grub. Using sudo, open up /boot/grub/menu.lst using your favorite text editor.
     
    Note : if ur version of linux Box does not Encrypts password as such, Then you may have to Copy The encrypted passwrd frm the Shadow Fiel..(If U r having this case, do ask me, n i wud tell u the whole game IN step wise step manner)
    After the "initrd" line for each entry you want to password protect, start a new line beginning with password --md5 and paste in your newly-encrypted password. Using the above example password on the i386 recovery entry, this:
    Code:
    title Ubuntu, kernel 2.6.8.1-2-386 (recovery mode)
            root (hd1,2)
            kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3 ro single
            initrd /boot/initrd.img-2.6.8.1-2-386

    Becomes this:
    Code:
    title Ubuntu, kernel 2.6.8.1-2-386 (recovery mode)
            root (hd1,2)
            kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3 ro single
            initrd /boot/initrd.img-2.6.8.1-2-386
            password --md5 $1$w7Epf0$vX6rxpozznLAVxZGkcFcs.
    You must add such a line after every entry you want to password protect. As I mentioned earlier, I password protected my recovery mode entries out of sheer paranoia.

    Save the file, and reboot. (The first time you try this, I suggest only doing it to one entry so you can test it to make sure it works, and you can still use another entry to boot your machine in case something went wrong.)

    For a bit of added peace of mind, you can prevent everyone except root from reading /boot/grub/menu.lst by doing:

    Code:
    sudo chmod 600 /boot/grub/menu.lst
    ______________________________________________________________________________

    Thats it u r finished with it.

    Hopes u enjoy this., have fun. Enjoy Hacking.. Enjoy Hackton

    8:14 PM by Shubham Mittal · 0

    How To hack Linux GRUB Pasword


    Hi guys, here is a very useful and a nice trick for those tech guys who are handy on LINUX os.

    As we kno, hacking a Linux password is like hitting a ball for six.

    Its so easy, bt sumtimes the admins use GRUB password which hardens the security.

    But wonder, what if we can hack it as well.

    So, ladies and gentlemen, here v go.

    THis is the tweak..
    GO, follow these steps and hack the charts..

    1- Boot system with cd/dvd of RHEL.

    2- At splash screen type 
    boot:linux rescue

    3- Choose language, choose keyboard, choose no network setup.

    4- Press continue, >>> ok.

    5- Type following:
    #chroot /mnt/sysimage
    #vi /etc/grub.conf

    6-  Remove that password line that v created ago.

    Thats it, n u r finished.

    Watsay?

    Queries and commenting wud be appreciated as usual.

    9:58 PM by Shubham Mittal · 0

    Free Download Themes For Ubuntu : Learn Latest Computer And Mobile Tricks


    ubuntu

    Although there are a number of good quality themes available for Ubuntu through various sites like gnome-look and devianart, it is still a tough task to find good themes for Ubuntu 9.10 Karmic Koala, which was released last year, in October 2009. There were only a limited number of new themes added to Karmic Koala. But, we have compiled here a list of free and attractive themes for Ubuntu 9.10 Karmic Koala.

    These themes are provided by bisigi project. These themes are very easy to install in Karmic Koala, as you just have to add the required repositories and then type a general command with the name of the theme you want to apply.

    e.g: sudo apt-get install theme-name

    Follow these steps to add free and attractive themes to Ubuntu 9.10 Karmic Koala:

    1. First you have to edit the /etc/apt/sources.list. To do it, open a terminal and type the following command:

    gksudo gedit /etc/apt/sources.list

    This command will open the file which contains the list of repositories. You have to add the following two lines to this file:

    deb http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main
    deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main

    You can now save the file and exit.

    2. In the next step you have to add the repository verification key (GPG Key). To do this, type in the terminal:

    gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-key 881574DE && 881574DE ">gpg -a --export 881574DE | sudo apt-key add -

    Now, you can update the source list by typing this command in the terminal:

    sudo aptitude update

    3. Now you can install all the themes by typing this command in the terminal:

    sudo aptitude install zgegblog-themes

    This command will install the following themes in Ubuntu 9.10 Karmic Koala:

    Note: To install each theme separately, you can use type the command included with that theme in the terminal.

    1. Showtime for Gnome

    sudo apt-get install showtime-theme

    1

    2. Balanzan

    sudo apt-get install balanzan-theme

    2

    3. Infinity

    sudo apt-get install infinity-theme

    3

    4. Wild Shine

    sudo apt-get install wild-shine-theme

    4

    5. Exotic

    sudo apt-get install exotic-theme

    5

    6. Tropical

    sudo apt-get install tropical-theme

    6

    7. Bamboo Zen

    sudo apt-get install bamboo-zen-theme

    7

    8. Ubuntu Sunrise

    sudo apt-get install ubuntu-sunrise-theme

    8

    9. Aqua Dreams

    sudo apt-get install aquadreams-theme

    9

    10. Ellanna

    sudo apt-get install ellanna-theme

    10

    11. Orange

    sudo apt-get install orange-theme

    11

    If you want to remove the full package containing all these themes, you can type the following command in the terminal:

    sudo aptitude remove zgegblog-themes

    If you want to remove individual theme, you can remove it by a command in this format:

    sudo aptitude remove themename

    where themname can be: showtime-theme, balanzan-theme and so on.

    Did you liked these themes ? Tell us your experience through comments.



    8:13 AM by Shubham Mittal · 0

    Download Ubuntu Theme for Windows Xp



    Ubuntu is one of the popular operating systems while Windows is the largest used OS worldwide. If you are habituated with Ubuntu and recently started working on XP, you can do yourself a favor – install Ubuntu theme for XP so that you can get Ubuntu look and feel on Windows XP. This theme is designed by FioreSSJ at DeviantArt.

    But before you read ahead, you need to patch uxtheme.dll file on your system so that non-Microsoft release visual style can be installed on Windows XP. If you have not applied this patch, download the patch from Softpedia and follow the instructions to install it on your system.

    Ubuntu theme for XP

    Now download Ubuntu theme for XP from here. This theme contains 5 different color schemes such as orange, blue, green, graphite and purple. Additionally it changes the Windows XP cursor and makes it look like xFree cursor. Once you have downloaded thetheme pack, extract the folder and follow the below steps :

    • Copy files from Wallpaper folder to C:\Windows\Web\Wallpaper
    • Copy files from Cursor folder to C:\Windows\Cursors
    • Copy files from Fonts folder to C:\Windows\Fonts
    • Copy other files to C:\Windows\Resources\Themes\Ubuntu (Make a new folder & rename it to Ubuntu yourself)
    • Click Human to load the visual style
    • Click Apply in display properties to save the changes
    • You are done.

    Ubuntu XP Theme

    Ubuntu XP Theme

    XP to Ubuntu transformation pack changes the visual style, desktop wallpaper, cursor, and fonts to give you Ubuntu feel and look on your Windows XP system. Now you can proceed to change system icons.

    Download Tango Shell Patcher to make Windows XP icons look like Ubuntu 6.10 icons. Download the patch, read the instructions, install on your system and enjoy.

    8:30 AM by Shubham Mittal · 0

    How To Dial-Up Automatically On Startup


    http://www.oucs.ox.ac.uk/email/config/passwords/xp-password.gif

    Save yourself from having to hand-connect to the Internet before surfing with Firefox.

    This hack explains how to automatically dial up your ISP when Firefox starts. Disconnecting is more problematic. Attack that using timeout configuration items provided by the operating system. If you want Firefox to auto-dial for you, this preference must be left on:

    network.autodial-helper.enabled   /* default = true */

    Windows 95/98/98SE/ME

    Dial-up technology under these Windows versions has a top layer called Dial Up Networking (DUN). To get this working without fail, make a copy of a Firefox desktop shortcut and change the copy. Change the specified firefox.exe program to run firefox.bat instead. Create that .bat file with these contents:

    @echo off
    start /B /MIN /W rundll32.exe rnaui.dll,RnaDial "connectoid"
    firefox.exe

    The string connectoid is the name of the connection icon in the Dial-Up Networking folder. It is case-sensitive. Do not use the name of a desktop shortcut that points to the connection icon. Change the name displayed on the new desktop icon to Firefox Internet or similar.

    This fix always works, but there is an alternate way. Firefox has a File Work Offline menu option. If Firefox is started in Offline mode, changing it to Online mode will instruct Firefox to always dial the ISP for you.

    It is also possible to make Firefox dial the ISP if the first web page request (such as the home page) fails. In order for this to happen, extra Windows setup is required. In the Internet Options Control Panel item, in the Connections tab, choose any radio button other than the one labeled "Never dial a connection."

    Windows NT/2000/XP

    Top-level dial-up technology under these Windows versions is called Remote Access Services (RAS). It should be started automatically when any program, including Firefox, attempts to access the Internet. If that's not working for you, check that the RAS Connection Manager and RAS Auto Connection Manager services are enabled using the Services icon in the Control Panel. The rules are otherwise the same as under 95/98/98SE/Me.

    If it still isn't working, make a copy of a Firefox desktop shortcut and change the copy. Change the specified firefox.exe program to firefox.bat. Create that .bat file with these contents:

    @echo off
    start /B /MIN /W rasdial.exe "connectoid"
    firefox.exe

    The string connectoid is the name of the connection icon, as described in the previous section. It is case-sensitive. Do not use the name of a desktop shortcut that points to the connection icon. To suppress the dialog that prompts for your ISP login details, try this instead:

    @echo off
    start /B /MIN /W rasdial.exe "connectoid" "username" "password"
    firefox.exe


    Beware: this saves your password as cleartext.


    3.6.3. Mac OS X

    Automatic PPP dial-up under OS X is handled through System Preferencesthe same as automatic Internet connection of all types. To set it up, choose System Preferences under the Apple menu and follow these steps:

    1. Click on the Network icon, in the Internet & Network group.

    2. From the Show pop-up menu near the top of the window, select your modem.

    3. Make sure the PPP tab is selected and click on the PPP Options... button near the bottom of the panel.

    4. Tick the first checkbox labeled "Connect automatically when needed."

    5. Click OK, and you're all set up.

    3.6.4. Linux/Unix

    To dial up before Firefox starts, just wrap the command-line call to Firefox in a shell script. Before you're ready to go, you must have the following things in place:

    • Modem hardware that's known (usually present; test with kudzu --probe)

    • Serial and PPP drivers in the kernel (usually present; test with modprobe -l)

    • Correct serial devices in /dev (usually present)

    • Software for PPP, such as pppd (usually present)

    • Software for DHCP, such as dhcpd (usually present)

    For example, under Red Hat Fedora Core, much of the work is automated for you. Run this GUI tool and review the information in its help system:

    /usr/bin/system-config-network

    If no profile is defined for the modem, use the GUI to create one. In the DNS tab, clear all the DNS entries except for DNS Search Path. Enter the ISP's domain name here, making sure the IP address is also recorded, either in the /etc/hosts file or using the tool:

    /usr/bin/system-config-bind

    If dial-up access via DHCP has been started, Linux DHCP will usually overwrite the /etc/resolv.conf file, which can affect or ruin any existing DNS arrangements that you might have in place.

    To configure and run dial-up by hand, configure dhcpd.conf to contain the ISP's DNS and IP Address information. Identify the tty in /dev that matches the modem, and simply run:

    pppd /dev/modemtty
    dhcpd

    Those commands can go in the wrapper script that starts Firefox.



    3:58 AM by Shubham Mittal · 0