-
Fototrend
OpenWrt topic
Új hozzászólás Aktív témák
-
winbox
senior tag
Sziasztok! openwrt-s routeremen iptables-sel blokkoltam pár dolgot, ami működik is rendesen, viszont kellene egy kivétel ip cím alapján. Ezt találtam neten, de valamiért nem működik. "iptables -I INPUT -s 192.168.0.100 -j ACCEPT #" mivel tudom a kivételekhez adni az ip-t?
Eladó Google Pixel 8 Pro 128GB Obsidian és Google Pixel Watch LTE Champagne Gold - https://t.ly/nW98Z
-
winbox
senior tag
válasz winbox #11602 üzenetére
Egy ilyen tűzfal szűrésnél: "iptables -I FORWARD -m layer7 --l7proto directconnect -j DROP" milyen paranccsal tudok IP címet a kivételekhez tenni? Mert hiába teszek a tiltás elé egy ilyen szabályt "iptables -I FORWARD -s 192.168.0.100 -j ACCEPT #" ugyanúgy szűr továbbra is. Lehet rossz a parancs, de neten már 1 napja keresem a választ és nem találok semmit
Eladó Google Pixel 8 Pro 128GB Obsidian és Google Pixel Watch LTE Champagne Gold - https://t.ly/nW98Z
-
winbox
senior tag
válasz vargalex #11610 üzenetére
Elsődleges cél a p2p tiltás volt, plusz van hozzá még pár szűrés. A szűrés nagyszerűen teszi a dolgát, de most meg nem hajlandó kivételt tenni :S
#l7proto MSN and P2P block
iptables -I FORWARD -m layer7 --l7proto msnmessenger -j DROP
iptables -I FORWARD -m layer7 --l7proto msn-filetransfer -j DROP
iptables -I FORWARD -m layer7 --l7proto 100bao -j DROP
iptables -I FORWARD -m layer7 --l7proto ares -j DROP
iptables -I FORWARD -m layer7 --l7proto audiogalaxy -j DROP
iptables -I FORWARD -m layer7 --l7proto bittorrent -j DROP
iptables -I FORWARD -m layer7 --l7proto directconnect -j DROP
iptables -I FORWARD -m layer7 --l7proto edonkey -j DROP
iptables -I FORWARD -m layer7 --l7proto fasttrack -j DROP
iptables -I FORWARD -m layer7 --l7proto gnutella -j DROP
iptables -I FORWARD -m layer7 --l7proto mute -j DROP
iptables -I FORWARD -m layer7 --l7proto poco -j DROP
iptables -I FORWARD -m layer7 --l7proto shoutcast -j DROP
iptables -I FORWARD -m layer7 --l7proto soulseek -j DROP
iptables -I FORWARD -m layer7 --l7proto tesla -j DROP
# Block Torrents Strings using Boyer-Moore
iptables -I FORWARD -m string --string "BitTorrent protocol" --algo bm -j DROP
#iptables -I FORWARD -m string --string ".torrent" --algo bm -j DROPEladó Google Pixel 8 Pro 128GB Obsidian és Google Pixel Watch LTE Champagne Gold - https://t.ly/nW98Z
-
winbox
senior tag
válasz vargalex #11612 üzenetére
Igen, most beletettem utána:
#l7proto MSN and P2P block
iptables -I FORWARD -m layer7 --l7proto msnmessenger -j DROP
iptables -I FORWARD -m layer7 --l7proto msn-filetransfer -j DROP
iptables -I FORWARD -m layer7 --l7proto 100bao -j DROP
iptables -I FORWARD -m layer7 --l7proto ares -j DROP
iptables -I FORWARD -m layer7 --l7proto audiogalaxy -j DROP
iptables -I FORWARD -m layer7 --l7proto bittorrent -j DROP
iptables -I FORWARD -m layer7 --l7proto directconnect -j DROP
iptables -I FORWARD -m layer7 --l7proto edonkey -j DROP
iptables -I FORWARD -m layer7 --l7proto fasttrack -j DROP
iptables -I FORWARD -m layer7 --l7proto gnutella -j DROP
iptables -I FORWARD -m layer7 --l7proto mute -j DROP
iptables -I FORWARD -m layer7 --l7proto poco -j DROP
iptables -I FORWARD -m layer7 --l7proto shoutcast -j DROP
iptables -I FORWARD -m layer7 --l7proto soulseek -j DROP
iptables -I FORWARD -m layer7 --l7proto tesla -j DROP
# Block Torrents Strings using Boyer-Moore
iptables -I FORWARD -m string --string "BitTorrent protocol" --algo bm -j DROP
#iptables -I FORWARD -m string --string ".torrent" --algo bm -j DROP
iptables -I FORWARD -s 192.168.0.100 -j ACCEPT #Eladó Google Pixel 8 Pro 128GB Obsidian és Google Pixel Watch LTE Champagne Gold - https://t.ly/nW98Z
-
winbox
senior tag
válasz vargalex #11614 üzenetére
A lényeget kimásoltam, most már az van felül ami kell nekem.
/etc$ iptables-save
# Generated by iptables-save v1.4.21 on Wed Jun 21 11:44:32 2017
-A FORWARD -s 192.168.0.100/32 -j ACCEPT
-A FORWARD -m string --string ".torrent" --algo bm --to 65535 -j DROP
-A FORWARD -m string --string "BitTorrent protocol" --algo bm --to 65535 -j DROP
# Completed on Wed Jun 21 11:44:32 2017Viszont a torrentet még így is kilövi a 100-as IP-n
Most vettem észre, hogy a layer7-re ezt dobja ki, úgyhogy kitöröltem belőle őket, szóval most csak a fenti 3 iptables van benne:
/etc$ /etc/init.d/firewall restartiptables v1.4.21: Couldn't load match `layer7'o such file or directory
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `layer7'o such file or directoryEladó Google Pixel 8 Pro 128GB Obsidian és Google Pixel Watch LTE Champagne Gold - https://t.ly/nW98Z
-
Új hozzászólás Aktív témák
- Spórolós topik
- Battlefield 2042
- Ukrajnai háború
- Forza sorozat (Horizon/Motorsport)
- EAFC 24
- Hálózati / IP kamera
- Futás, futópályák
- Summer Game Fest 2024 - Az összes bejelentés egy helyen!
- Computex 2024: bemutatkozott a Biostar alaplapok AMD-s zászlóshajója
- Eredeti játékok OFF topik
- További aktív témák...
- Új, bontatlan World of Warcraft gyűjtői kiadások
- 10 Darab PC Játék (Bontatlanul!) Egyben 6990Ft.-ért Foxal!!!
- AKCIÓ! - STEAM kulcsok / Punch Club, Oddworld: Soulstorm, Children of Morta, stb. - 2024.05.16.
- Vírusirtó, Antivirus VPN kulcsok
- Bontatlan - BATTLEFIELD 1 Collectors Edition - Játékszoftver nélkül
Állásajánlatok
Cég: Ozeki Kft.
Város: Debrecen
Cég: Alpha Laptopszerviz Kft.
Város: Pécs