Boa noite,
Como pretendo fazer um Captive Portal em meu servidor resolvi instalar um Apache para exibir as páginas de autenticação ou seja quando o usuário não estiver autenticado ele ficará vendo está página em toda sua requisição WEB. O problema é que quando acessavamos algum endereço de IP a página era exibida mas ao se utilizar endereços isto não acontecia pois ele não conseguia acesso até o DNS. Pesquisei um pouco pela internet e vi alguns falando sobre a instalação de um servidor DNS no próprio servidor, fiz isso mas não achei muito interessante então pensando sobre regras de iptables me veio a grande idéia de simplesmente redirecionar os acessos a porta 53. As regras que utilizei para Bloquear acesso de MAC não liberados, redirecionar a porta 80 para meu apache, permitir acesso ao DNS foram as seguintes:
Ainda estou brincando com o servidor e hoje estava querendo liberar acesso exclusivamente para os MAC aqui de casa, garantindo assim que nenhum vizinho vai pegar meu sinal e utilizar. Demorei algum tempo para conseguir regras que funcionassem efetivamente.
Liberar acesso de tal MAC ADDRESS:
iptables -t nat -A PREROUTING -i INTERFACE_INTERNA -m mac –mac-source MAC -j ACCEPT
Redirecionar porta 80 para 8080
iptables -t nat -A PREROUTING -i INTERFACE_INTERNA -p tcp –dport 80 -j REDIRECT –to-port 8080
Liberar acesso somente ao servidor DNS:
iptables -t nat -A PREROUTING -i INTERFACE_INTERNA -p udp –dport 53 -j DNAT –to IP:53
Bloquear todos os acessos:
iptables -t nat -A PREROUTING -i INTERFACE_INTERNA -j DROP
Matheus
PS: Se as mesmas não estiverem funcionando, não se esqueca de dar uma verificada nas suas regras atuais de iptables pois pode ter algo proibindo ou liberando tudo antes. Então fique atento.
mostbet kg mostbet kg
mostbet регистрация http://www.mostbet12034.ru
mostbet sikachat mostbet sikachat
ставки мостбет mostbet12037.ru
mostbet kg mostbet kg
скачать бк осталось именно выбрать подходящее скачать бк осталось именно выбрать подходящее
мостбе http://www.mostbet12040.ru
1вин сайт официальный вход http://1win12019.ru
скачать 1вин официальный сайт скачать 1вин официальный сайт
официальный сайт конторы 1win http://1win5521.ru/
melbet баланс 500 рублей melbet баланс 500 рублей
molbet http://melbet5002.ru/
melbet букмекерская контора официальный скачать http://melbet5003.ru/
melbet statistici meci https://melbet5011.ru/
melbet tichete https://melbet5012.ru
bonus melbet http://melbet5013.ru
melbet ruletă melbet5015.ru
проверить купон мелбет melbet5005.ru
bonus melbet bonus melbet
пин ап центр помощи https://pinup5009.ru
пин ап скачать на айфон https://pinup5012.ru/
пин ап центр помощи https://www.pinup5013.ru
пин ап бонус код http://pinup5015.ru
1win to‘lov usullari 1win to‘lov usullari
скачать приложение melbet на андроид http://melbet5006.ru/
lucky jet скачать на айфон играть luckyjetslot http://www.1win12045.ru
Greetings from Colorado! I’m bored to tears at work so I decided to check out your blog on my
iphone during lunch break. I enjoy the knowledge you provide here and can’t
wait to take a look when I get home. I’m amazed at how
quick your blog loaded on my mobile .. I’m not even using WIFI, just
3G .. Anyways, great site!
сайт мостбет https://mostbet2029.help
monsbet http://www.mostbet2030.help
mostbet baixar mostbet2031.help
мосвет казино http://mostbet2032.help/
1win vhod 1win12047.ru
apuestas españa inglaterra
my blog post … basketball-wetten.com
consejos Partidos De Hoy Apuestas combinadas
empresas de apuestas gratis puntos en españa
sportwetten tippen
Here is my web blog wetten online paypal
was bedeutet handicap wetten
Feel free to visit my blog post – Sportwetten die besten
live wetten bonus
Also visit my homepage – Beste Wettstrategien
wettbüro aufmachen
Also visit my website; dfb pokal wettquoten (orpealead.es)
gaming club casino usa login, bitcoin gambling united kingdom and
united statesn poker 95 download, or new poker sites uk 2021
Here is my blog post – Lowest Minimum blackjack tables in vegas
casino usa free spins for year, free $25 online bingo canada and best free online slots canada, or bingo united kingdom
on gsn
My homepage … Goplayslots.net
österreich wettanbieter
Also visit my web page: was sind handicap wetten
free spin no deposit casino australia, semyon dusaach blackjack
Roulette Systems And Strategies play
free games for real money uk, or casino no deposit
bonus codes 2021 united states
best rated payout online casino nz, new is the silver reef casino open today
sites not uk and australian free pokies games, or best craps online canada
united states gambling sites, gambling revenue canada
and no deposit cash bonus casino canada, or online casinos accepting usa
My web-site … bingo games for free to play (Brett)
online poker australia no deposit bonus, australia salvation army gambling
(Cheri) winnings
taxable and do you pay tax on casino winnings in australia, or free casino
chips usa
pronostico nhl calculadora Apuestas Segura deportivas
pronosticos apuestas ganador europa league, dienthienan.vn, premier league
Magnificent goods from you, man. I’ve understand your stuff previous to and you are just too magnificent.
I actually like what you have acquired here,
certainly like what you’re stating and the way in which you say
it. You make it enjoyable and you still take care of to keep it wise.
I can not wait to read far more from you. This is really a terrific site.
Also visit my blog post how much does harrah’s casino pay
bitcoin gambling usa, online gambling uk statistics
and canadian gambling Why Is the dice game called Craps,
or starburst slots uk