Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 27 December 2024, 11:01:43 am

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14262 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Firewall Redirect
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Firewall Redirect  (Read 11279 times)
psitech
Jr. Member
*
Offline Offline

Posts: 4


« on: Tuesday 03 April 2012, 09:54:36 am »

Hi, i have a squid with authentication and i want to create a rule for GREEN interface to everithing in port 80 redirect to port 3128, i know the command ( iptables -t nat -A PREROUTING -i br0 -p tcp --dport 3128 -j REDIRECT --to 3128 ) but where i can put this in endian to every reboot its work ?
Logged
kashifmax
Sr. Member
****
Offline Offline

Gender: Female
Posts: 108


« Reply #1 on: Tuesday 03 April 2012, 07:37:54 pm »

Hi, i have a squid with authentication and i want to create a rule for GREEN interface to everithing in port 80 redirect to port 3128, i know the command ( iptables -t nat -A PREROUTING -i br0 -p tcp --dport 3128 -j REDIRECT --to 3128 ) but where i can put this in endian to every reboot its work ?

Method 1
1) Make a script and link to /etc/init.d/
2) Use chkconfig command to add and load on specific runlevel.

Method 2
1) Add the command in file rc.local, but I didn't found rc.local in EFW 2.5...
Logged
psitech
Jr. Member
*
Offline Offline

Posts: 4


« Reply #2 on: Tuesday 03 April 2012, 10:04:34 pm »

I create a exec file in /etc/rc.d/start/customfirewall  i have to enable somthing in initialization to exec any file in this folder ?
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.063 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com