Gå til innhold

Hva skjuler det seg bak din Ctrl+v?


Anbefalte innlegg

methionylglutaminylarginyltyrosylglutamylserylleucyl phenylalanylalanylglutaminylleucyllysylglutamylarginyl lysylglutamylglycylalanylphenylalanylvalylprolylphenyl alanylvalylthreonylleucylglycylaspartylprolylglycylisol eucylglutamylglutaminylserylleucyllysylisoleucylaspartyl threonylleucylisoleucylglutamylalanylglycylalanylaspartyl alanylleucylglutamylleucylglycylisoleucylprolylphenyl alanylserylaspartylprolylleucylalanylaspartylglycylprolyl threonylisoleucylglutaminylasparaginylalanylthreonylleucyl arginylalanylphenylalanylalanylalanylglycylvalylthreonyl prolylalanylglutaminylcysteinylphenylalanylglutamyl methionylleucylalanylleucylisoleucylarginylglutaminyllysyl histidylprolylthreonylisoleucylprolylisoleucylglycylleucyl leucylmethionyltyrosylalanylasparaginylleucylvalylphenyl alanylasparaginyllysylglycylisoleucylaspartylglutamylphenyl alanyltyrosylalanylglutaminylcysteinylglutamyllysylvalyl glycylvalylaspartylserylvalylleucylvalylalanylaspartylvalyl prolylvalylglutaminylglutamylserylalanylprolylphenylalanyl arginylglutaminylalanylalanylleucylarginylhistidylasparaginyl valylalanylprolylisoleucylphenylalanylisoleucylcysteinyl prolylprolylaspartylalanylaspartylaspartylaspartylleucyl leucylarginylglutaminylisoleucylalanylseryltyrosylglycyl arginylglycyltyrosylthreonyltyrosylleucylleucylserylarginyl alanylglycylvalylthreonylglycylalanylglutamylasparaginyl arginylalanylalanylleucylprolylleucylasparaginylhistidyl leucylvalylalanyllysylleucyllysylglutamyltyrosylasparaginyl alanylalanylprolylprolylleucylglutaminylglycylphenylalanyl glycylisoleucylserylalanylprolylaspartylglutaminylvalyllysyl alanylalanylisoleucylaspartylalanylglycylalanylalanylglycyl alanylisoleucylserylglycylserylalanylisoleucylvalyllysylisol eucylisoleucylglutamylglutaminylhistidylasparaginylisoleucyl glutamylprolylglutamyllysylmethionylleucylalanylalanylleucyl lysylvalylphenylalanylvalylglutaminylprolylmethionyllysyl alanylalanylthreonylarginylserine

Lenke til kommentar
Videoannonse
Annonse

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean elementum lectus vel odio euismod eu dictum nisl dignissim. Aenean et lorem ipsum. Quisque massa justo, hendrerit vehicula tristique lacinia, ullamcorper sit amet libero. In a ipsum non ante egestas tempus eu id lorem. Etiam mattis facilisis neque sed mattis. Pellentesque cursus, leo et imperdiet ullamcorper, sem lorem tincidunt sem, sit amet euismod urna ipsum ac nibh. Praesent non felis turpis, vel suscipit dui. Fusce at dui nec dolor sodales pulvinar. Aliquam ullamcorper odio in dui volutpat fringilla. Donec diam orci, varius a dictum quis, sollicitudin nec felis. Phasellus aliquam justo a risus laoreet varius. Morbi posuere mauris mauris. Praesent id justo vel sem convallis mattis ac vitae nisl. Etiam tincidunt, nisl eget posuere suscipit, velit ipsum pretium nisi, non pulvinar ipsum magna quis neque.

Maecenas auctor consequat tempus. Pellentesque quis augue sit amet neque consectetur pellentesque eu id erat. Sed fringilla elit sollicitudin erat egestas et adipiscing tellus tincidunt. Curabitur ac elit non odio porttitor dignissim quis non enim. Aenean volutpat dui fermentum est vestibulum imperdiet. Integer vestibulum leo et velit laoreet tristique. Mauris dignissim, enim at dictum bibendum, augue nisl semper tellus, quis fringilla lectus sapien sed nunc. Pellentesque congue dui vitae est vestibulum bibendum. In hac habitasse platea dictumst. Vivamus id ornare tortor. Duis fringilla facilisis tellus, ac dictum mauris ultrices et. Ut sed felis ipsum, egestas egestas elit. Pellentesque justo nibh, elementum vel suscipit eget, consequat convallis felis.

Cras tincidunt elit eu massa accumsan mattis lacinia nunc tristique. Vivamus placerat mi quis erat porta hendrerit in non felis. Sed eget pulvinar orci. Nulla sed consectetur velit. Curabitur luctus gravida tellus, vitae rutrum felis sagittis in. Integer eget libero eget ipsum mattis ornare dictum et nunc. Vestibulum consectetur pulvinar elementum. Pellentesque in porttitor lorem. Nulla ante sapien, rutrum non ultricies ac, volutpat nec nibh. Nullam vestibulum sem velit. Ut commodo rutrum velit vitae faucibus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vestibulum consequat leo eu interdum. Nam cursus euismod diam eu gravida. Donec elit nisi, aliquet vel aliquet nec, dignissim a velit.

Vivamus sollicitudin posuere nulla non consectetur. Donec pretium ipsum in lacus consectetur id consectetur ligula consectetur. Maecenas semper mi eu elit imperdiet sollicitudin. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tincidunt lorem in massa egestas viverra. Donec bibendum mauris ac magna pretium quis cursus eros fringilla. Phasellus vehicula, lorem eu eleifend hendrerit, enim sapien aliquet risus, eu condimentum enim ipsum non nibh. Fusce vestibulum tellus ut eros pulvinar id tempus ipsum hendrerit. Nullam quis mauris arcu, a convallis nibh. Cras libero lacus, auctor in tristique sed, rutrum accumsan sapien. Cras pharetra quam vitae justo varius auctor. Nullam varius tincidunt pellentesque.

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis lorem urna, pellentesque eu dapibus et, posuere quis sem. Fusce accumsan tincidunt libero id faucibus. Donec egestas tortor eu erat lacinia auctor. Pellentesque arcu tortor, interdum quis ultricies vel, condimentum at massa. In eu lacus quis augue fermentum imperdiet. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer quis augue dui, nec vestibulum tellus. Morbi turpis augue, aliquet in tempor vitae, commodo vitae metus.

Generated 5 paragraphs, 535 words, 3690 bytes of Lorem Ipsum

Lenke til kommentar

##Configs

# Allow ping

-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT

 

# Allows HTTP and HTTPS connections from anywhere (the normal ports for websites)

-A INPUT -p tcp --dport 80 -j ACCEPT

-A INPUT -p tcp --dport 443 -j ACCEPT

= Block everythigng besides what you allow =

iptables -A INPUT -p tcp -m multiport --destination-ports 22,25,53,80,443,465,5222,5269,5280,8999:9003 -j ACCEPT

iptables -A INPUT -p udp -m multiport --destination-ports 24 -j ACCEPT

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -P INPUT DROP

iptables -P FORWARD DROP

Script for doing so:

 

#!/bin/sh

# My system IP/set ip address of server

SERVER_IP=""***********"

# Flushing all rules

iptables -F

iptables -X

# Setting default filter policy

iptables -P INPUT DROP

iptables -P OUTPUT DROP

iptables -P FORWARD DROP

# Allow unlimited traffic on loopback

iptables -A INPUT -i lo -j ACCEPT

iptables -A OUTPUT -o lo -j ACCEPT

# Only Allow Certain Ports

iptables -A INPUT -p tcp -m multiport --destination-ports 22,8080 -j ACCEPT

iptables -A INPUT -p udp -m multiport --destination-ports 53 -j ACCEPT

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -P INPUT DROP

iptables -P FORWARD DROP

 

Save as *.sh

Execute with ./file.sh

Set proper file permissions: chmod u+x file.sh

 

#################################### DEFAULT ######################################################

*filter

# Allow all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0

-A INPUT -i lo -j ACCEPT

-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT

# Accept all established inbound connections

-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow all outbound traffic - you can modify this to only allow certain traffic

-A OUTPUT -j ACCEPT

# Allow HTTP and HTTPS connections from anywhere (the normal ports for websites and SSL).

-A INPUT -p tcp --dport 80 -j ACCEPT

-A INPUT -p tcp --dport 443 -j ACCEPT

#ZNC

-A INPUT -p tcp --dport 8080 -j ACCEPT

# Allow SSH connections

#

# The -dport number should be the same port number you set in sshd_config

#

-A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT

# Log iptables denied calls

-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7

# Reject all other inbound - default deny unless explicitly allowed policy

-A INPUT -j REJECT

-A FORWARD -j REJECT

COMMIT

Endret av Sulfuric
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...