LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-11-2018, 04:01 AM   #1
moderich
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Rep: Reputation: Disabled
Iptables rule for repeater


Hello!

I'm trying to set up a network with Squid as proxy server. Unfortunately it seems that Squid is too slow for audio streaming purposes; in my case WLAN-radios. So my approach was simply creating some rules in my firewall that bypass Squid for my radios:

Code:
ipset -N radios hash:ip
ipset -A radios 192.168.2.40
ipset -A radios 192.168.2.41 #behind repeater
iptables -t nat -A PREROUTING -p udp --dport 80 -m set ! --match-set radios src -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -p tcp --dport 80 -m set ! --match-set radios src -j REDIRECT --to-port 3128
This works quite fine; streaming is not interrupted for the first radio and therefore correctly bypassed. Unfortunately the second radio still works not good. After having examined the logs I found out that the second radio is connected to the repeater and not to the router itself, so the iptables rule is not quite correct. What I actually need would be a rule that allows traffic from the repeater to the radio to be bypassed, but traffic from the repeater to all other receivers should be sent to Squid as desired. Obvioulsly I'm not too familiar to iptables, so any help is welcome!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables rule amartlk Linux - Security 1 01-25-2012 01:55 AM
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
[SOLVED] IPtables rule szboardstretcher Linux - Security 7 02-24-2011 07:30 PM
Iptables rule psix Linux - Security 3 11-08-2010 01:50 AM
help with iptables rule!! vishamr2000 Linux - Security 6 11-09-2005 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration