background preloader

Server konfiguration

Facebook Twitter

Iptables 9 Change Rules While in Use. Iptables 9 You have learnt how rules can be saved in a file, and pasted to Iptables.

Iptables 9 Change Rules While in Use

This may be easy when learning Iptables. However, when using Iptables in real life situations, it may be necessary to add, delete, or replace rules to an existing set up. You have already used "-A. " This appends or adds a rule to a chain after all of the other rules. Rules can be deleted using "-D" and the line number. To view line numbers at the beginning of each line, type: A rule can be inserted using "-I," with the line number. This rule would be inserted at line 7 on the INPUT chain. A rule can be replaced using "-R," with the line number. This rule would replace the rule at line 12 on the INPUT chain. Saving Rules If you change rules like this, and restart the computer, it will restart with the previous set of rules. Saving Rules When Shutting Down To save the rules when the computer is turned off, add the following line to "/etc/network/interfaces.

" © Copyright Guy Shipard 2008 - 2009. How to find out Active Connections or which Ports are open/listening on Linux. While managing a server or your home desktop, sometimes you might want to check out which ports are currently being used by which applications, what all TCP/UDP connections are active at the moment or other similar cases.

How to find out Active Connections or which Ports are open/listening on Linux

There are two basic command line tools present in almost all the Linux/UNIX based systems - netstat and lsof, that might help you out with such queries. Before starting it would be good to know about these two commands. Netstat is used to display network connections, routing tables and a whole bunch of network and interface stats.lsof on the other hand is used to list out open files. So, if you want to find out what all files are currently open just run lsof.

And since in Linux "Everything is a File", we can use lsof to print network connections too. Lets start learning by resolving common queries. How to display a list of open ports? This can be done using both netstat and lsof. [shredder12]$ netstat -n -A inet. Linux IPTables: How to Add Firewall Rules (With Allow SSH Example) This article explains how to add iptables firewall rules using the “iptables -A” (append) command.

Linux IPTables: How to Add Firewall Rules (With Allow SSH Example)

“-A” is for append. If it makes it easier for you to remember “-A” as add-rule (instead of append-rule), it is OK. But, keep in mind that “-A” adds the rule at the end of the chain. Again, it is very important to remember that -A adds the rule at the end. Typically the last rule will be to drop all packets. Once you’ve mastered the iptables, and when you are implementing it on production, you should use a shell script, where you use -A command to add all the rules. Syntax: Farvel til YouSee tv boks - goddag til MythTV og XBMC på Raspberry Pi. Category TVElektronikComputereDanishJeg er lige blevet færdig med at sætte et lækkert TV-kigge-system op for min lille familie.Det er en erstatning for YouSees TV-boks som vi ind til nu har haft lejet gennem Skanderborg antenneforening.

Farvel til YouSee tv boks - goddag til MythTV og XBMC på Raspberry Pi

De centrale muligheder som vores HTPC (Home Theater PC) giver os: Optage to samtidige programmer.Optage i høj kvalitet.Planlægge optagelser fra en stor Elektronisk Program Guide. Som tilgås med en browser fra en hvilken som helst PC i huset.Avancerede optage-muligheder (en gang pr dag, en gang pr uge, alt hvor der står "science fiction" i beskrivelsen).Masser af optageplads.Afspilning af optagelser fra alle husets PCer.Afspilning af optagelser på TV via et simpelt bruger-interface.Reklamer springes over ved afspilning af optagelser. Nedenfor ser vi mit TV. Nederst har jeg sat ring om fjernbetjeningen og en Raspberry Pi.

Hvad består så detteher i for nogen dimser De centrale komponenter er: Netværkstuner Den ser sådan ud fra forsiden: Og fra bagsiden: IPTables Flush: Delete / Remove All Rules On RedHat and CentOS Linux. On Red Hat based Linux, iptables comes with certain default rules.

IPTables Flush: Delete / Remove All Rules On RedHat and CentOS Linux

It is good idea to clean them up, and start from scratch. This article is part of an ongoing iptables tutorial series. This is the 2nd article in that series. In our 1st part, we discussed about IPTables Tables, Chains, Rules Fundamentals. Before we start learning how to add firewall rules using iptables, it is helpful to understand how to cleanup all the existing default rules and start everything from scratch. Default Rules in IPTables Start the iptables firewall as shown below. # service iptables status Firewall is stopped. # service iptables start Applying iptables firewall rules: [ OK ] Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]