
lefthook
Members-
Content Count
37 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout lefthook
-
Rank
New Here
-
Could someone recommend software for creating language course on CD or DVD with audio & video & click answers and so on....? Or just html & browser?
-
cf linux with apache & php & mail server
lefthook replied to lefthook's topic in Other Linux and Unix Distributions
I mean one that is installed on a compact flash card & runs from there, boots fast, no hd. (Ide adapter + CF Card). I have one, but it runs from FAT 16 with Syslinux. I wonder if I could use some other FS. http://chinese-watercolor.com/LRP/hd/ -
Yes, I mean on a web page
-
Can I preload audio files before imag. etc. on page?
-
Well exactly two ISPs, this was not home networking... Everything is for sharing internet two client LANs and traffic limiting and so on... I found everything from lartc.org. This also for example for load balancing & high availibility. Don´t drink anymore...
-
I ment with two gateways? One Linux. Two LANs. Problems with two gateways?
-
Has someone experiences with this: LAN-1 -----eth0 LINUX eth2 ----------- INTERNET ROUTER-1 LAN-2 ----- eth1 eth3 ----------- INTERNET ROUTER-2 So, all traffic from LAN-1 goes to INTERNET ROUTER-1 & from LAN-2 to INTERNET ROUTER-2. This all done with iptables SNAT... Any problems with this? Points?
-
Please, tell me howto SNAT 192.168.2.0 to 192.168.3.0?
lefthook replied to lefthook's topic in Networking
Well I made it ok: 192.168.200.0/24----Linux & bw limiterrouter ---eth0 with about 40 virtual ips ----> winroute with 2way satellite (internet gateway). the command is (/etc/rc.d/rc.firewall): iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.2.2-192.168.2.41 I cannot do the normal masquerading because winroute sat gateway cannot handle many connections from the same IP, so I have 40 IP going to winroute. -
HI I need to SNAT the whole network to other, how? I mean: 192.168.2.0/255.255.255.0 to 192.168.3.0/255.255.255.0. I Know how to do SNAT to one outgoing IP, but is there any caveats to with this? I have to Exclude GW I think so?
-
I think it was only: echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter what I missed...
-
And it does not help if I put: iptables -A INPUT -s 192.168.200.93 -j DROP
-
Hi! Im working with a network like: clients-------switch----eth1--linux--eth0--------internet & rules for masquerading: iptables -A POSTROUTING -t nat -s 192.168.200.0/24 -j MASQUERADE iptables --append FORWARD --in-interface eth1 -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward if a bad configured client is connected to switch LM 9 starts to freeze? How to protect? What it could be, double IPs? For example: 192.168.200.65 and 11 work very well, but if I connect a machine 192.168.200.93 everything starts to freeze. I just & just can see with iptraf that it is the machine 93. The router has P4 & 256MB.
-
PHP cannot connect to my mail server
lefthook replied to lefthook's topic in Command Line, Kernel and Programming
Well, things start to clear. My Apache PHP has a chroot installation, so at last I looked /var/logs/error_log: sh: /var/qmail/bin/qmail-inject: No such file or directory sh: /bin/qmail-inject: No such file or directory sh: /var/www/usr/bin/qmail-inject: No such file or directory sh: /bin/qmail-inject: No such file or directory I made a link: sh: /var/qmail/bin/qmail-inject: Too many levels of symbolic links I think there is problem with chroot & links. I'm quite a newbie with this chroot. perhaps I should move this question: How to link correctly chroot binaries outside or is it possible? I have: /var/qmail/bin/ chroot: /var/www/: bin var apache usr etc.. & so on.... -
PHP cannot connect to my mail server
lefthook replied to lefthook's topic in Command Line, Kernel and Programming
What a problem! I suppose that the code is not the problem. I changed mail func to Qmail-injector function, so everything should be right for Qmail. The script does not return errors. But nothing appears to Qmails logs. From the command line I can send a message with qmail-inject. Here my little form: <HTML> <HEAD> <TITLE>E-Mail Form</TITLE> </HEAD> <BODY> <?php function qmail_inject($from,$to,$subject,$msg) { # just in case ... # $from = escapeshellarg($from); # change the email address below (returns@fodge.net) to the # address where you wish to receive bounced mail notification if ( $fh = popen("/var/qmail/bin/qmail-inject -f$from", 'w') ) { # opened qmail-inject # write to it // My code starts (I could not use the standart rn because it does // not work? with n it works fine) $content="Return-Path: ".$from."n"; $content.="Date: ".date®."n"; $content.="From: ".$from."n"; $content.="Subject: ".$subject."n"; $content.="To: ".$to."n"; $content.=$msg."n"; //..> My code Ends fputs ($fh, $content); # need to know what qmail-inject just got hit with? # print '<pre>'. htmlspecialchars($content) .'</pre>'; if ( ($qmail_exit = pclose($fh)) != 0 ) { # woops, qmail didn't like that return FALSE; } return TRUE; } else # couldn't do anything return FALSE; } // Your E-mail Address $to = "me@example.com"; if ($ACTION == "send-mail") { qmail_inject($from,$to,$subject,$msg); echo "<h2>Thanks for sending me a mail!</h2>n"; } else { echo "<h2>Hello! Use this form to send me mail!</h2>n"; } ?> <FORM METHOD=POST> <INPUT TYPE=HIDDEN NAME="ACTION" VALUE="send-mail"> Your E-mail: <INPUT TYPE=TEXT NAME="from"><br> Message Subject: <INPUT TYPE=TEXT NAME="subject"><p> Message:<br> <TEXTAREA NAME="msg" ROWS=5 COLS=50></TEXTAREA><p> <INPUT TYPE=SUBMIT> * <INPUT TYPE=RESET> </FORM> </BODY> </HTML>