| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,245
» Latest member: dprp
» Forum threads: 4,031
» Forum posts: 16,406
Full Statistics
|
| Online Users |
There are currently 558 online users. » 0 Member(s) | 555 Guest(s) Baidu, Bing, Google
|
| Latest Threads |
how to allow only steam t...
Forum: Xorg Problems
Last Post: moquber
2026-03-17, 09:40 PM
» Replies: 0
» Views: 505
|
Wi-Fi works for a few min...
Forum: Network Problems
Last Post: kabifff
2025-12-15, 12:57 AM
» Replies: 0
» Views: 892
|
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 4,180
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 126,179
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 75,912
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 5,567
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 9,493
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 48,237
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 168,715
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 98,984
|
|
|
| proxy/ip detection script |
|
Posted by: seeno - 2005-07-20, 01:22 AM - Forum: LAMP
- Replies (1)
|
 |
Code: <?php
$reqhost = $_SERVER['HTTP_HOST'];
$proxy = $_SERVER['HTTP_X_FORWARDED_FOR'];
$ipaddr = $_SERVER['REMOTE_ADDR'];
$revdns = $_SERVER['REMOTE_HOST'];
$final = "";
if ($revdns) {$final = $revdns;}
else {$final = $ipaddr;}
if ($proxy) {
$final = $proxy;
$prxyhost = gethostbyaddr($_SERVER['HTTP_X_FORWARDED_FOR']);
if ($prxyhost) {$final = $prxyhost;}
}
echo"your ip/revdns is $final";
?>
this little script will check if there's a proxy by checking if there is a X_FORWARDED_FOR in the header (which contains the client's ip) and will try to get the reverse dns of that ip, if there's no revdns, it prints the ip, if there's no X_FORWARDED_FOR, it will try to get the reverse dns of the remote ip (REMOTE_HOST), if there's no revdns, it will print the ip (REMOTE_ADDR).
|
|
|
| non-recursive Tar |
|
Posted by: section31 - 2005-07-18, 02:47 PM - Forum: Compressed Files
- Replies (4)
|
 |
Is there a simple way to do a non-recursive tar.
I've come up with a few sites that say there is a flag -n for it, but the distro (fedora 3) i'm using doesn't have that option. Any other alternatives?
|
|
|
| Port Forwarding behind router |
|
Posted by: seeno - 2005-07-15, 03:37 PM - Forum: Security and Firewalls
- No Replies
|
 |
Ok, if your behind a router and your DMZ'd box is running linux, (AFAIK a DMZ'd box is a box that all the external tcp/udp ports are forwarded to from the router, that and icmp), and you want to forward a port from your DMZ'd box to another internal (aka private) IP, this is the tut for you.
Code: iptables -t nat -A PREROUTING -p tcp --dport $Port-to-forward -j DNAT --to-destination $Internal-IP
iptables -t nat -A POSTROUTING -p tcp -d $Internal-IP --dport $Port-to-forward -j SNAT --to-source $DMZ-Internal-IP
iptables -P FORWARD ACCEPT
Where $Port-to-forward is the port you want forwarded, and $Internal-IP is the Internal IP you want the port forwarded to, and $DMZ-Internal-IP is the DMZ'd box's Internal IP.
#
# Explanation
#
What the first command does is when a packet is recieved it checks if the destination port is $Port-to-forward, and if it is it changes the destination IP of the packet's header from the DMZ'd IP to $Internal-IP.
So now we have a packet's destination to $Internal-IP, and a source of whatever. (So when $Internal-IP wants to send the packet back it will send it through the
gateway with the source IP of whatever, aka the *real* remote IP and the gateway will send it back to the DMZ'd box, wich is $DMZ-Internal-IP.) We're half there.
Now, first of all the text between the () will not happen if the second command is put, what the second command does is match the packet to see if the
destination is $Internal-IP and the destination port is $Port-to-forward, then it will change the *source* IP from the remote host to $DMZ-Internal-IP, so the packet comes back to the DMZ'd box so that it could re-route it.
EDIT: The last command sets the default policy of FORWARD to ACCEPT
And I think you should
Code: echo 1 > /proc/sys/net/ipv4/conf/all/forwarding && echo 1 > /proc/sys/net/ipv4/ip_forward
to enable forwarding.
|
|
|
| oooh mozilla... |
|
Posted by: anyweb - 2005-07-15, 01:33 PM - Forum: Security and Firewalls
- Replies (2)
|
 |
On Tuesday, July 12, the Mozilla Foundation discovered that the server hosting Spread Firefox, our community marketing site, had been accessed on Sunday, July 10 by unknown remote attackers who exploited a security vulnerability in the software running the site. This exploit was limited to SpreadFirefox.com and did not affect other mozilla.org web sites or Mozilla software.
We don't have any evidence that the attackers obtained personal information about site users, and we believe they accessed the machine to use it to send spam. However, it is possible that the attackers acquired information site users provided to the site.
As a Spread Firefox user, you have provided us with a username and password. You may also have provided us with other information, including a real name, a URL, an email address, IM names, a street address, a birthday, and private messages to other users.
We recommend that you change your Spread Firefox password and the password of any accounts where you use the same password as your Spread Firefox account. To change your Spread Firefox password, go to SpreadFirefox.com, log in with your current password, select "My Account" from the sidebar, select "Edit Account" from the sidebar, then enter your new password into the Password fields and press the "Save user information" button at the bottom of the page.
The Mozilla Foundation deeply regrets this incident and is taking steps to prevent it from happening again. We have applied the necessary security fixes to the software running the site, have reviewed our security plan to determine why we didn't previously apply those fixes in this case, and have modified that plan to ensure we do so in the future.
Sincerely,
The Mozilla Foundation
|
|
|
| site line upgraded to 24mb |
|
Posted by: anyweb - 2005-07-15, 01:12 PM - Forum: Site News
- Replies (3)
|
 |
today the site was ugpraded from an 8mb line to a 24mb line (24/1) ADSL 2+
pretty good deal from the isp, as long as i stay with them for another year they gave me the new modem FREE and the line rental per month actually now costs me LESS than i was paying for the 8mb line
about 44 euros per month for 24 megabits :P
enjoy and let me know if you think the site is a bit faster now
cheers
anyweb
|
|
|
| easily get your WAN IP |
|
Posted by: hijinks - 2005-07-14, 06:03 PM - Forum: Tips and Tricks
- No Replies
|
 |
this was just asked in the IRC channel.. he was wondering if there was a easy way in shell to get the external IP address if you are behind a router. well there is. I setup a very simple php page to report back your IP.. so if you run
Code: IP=`wget -q -O - http://homer.meso.com/remoteip.php`
echo $IP
You should get your IP address back.. here is the 1 liner php script if anyone wants to run their own
Code: <? echo $_SERVER["REMOTE_ADDR"]; ?>
|
|
|
| jumpdrive boot?!? |
|
Posted by: gus - 2005-07-13, 09:51 PM - Forum: Knoppix
- Replies (4)
|
 |
i was just wondering if it would be possable to save knoppix to my jumpdrive (1Gig) and boot/run knoppix from there?
|
|
|
| Very n00b network question. |
|
Posted by: Zeppo - 2005-07-13, 01:50 PM - Forum: How Do I?
- Replies (4)
|
 |
Got a fedora box up and working on my network as a normal desktop, not a server.
What do I need to do to be able to browse to my other windows 2000 PCs and see their files?
Is this a samba thing?
Just want to make sure.
Thanks!
|
|
|
| hi im gus |
|
Posted by: gus - 2005-07-13, 06:04 AM - Forum: Hello
- Replies (13)
|
 |
hey, im gus and ive decided to go linux yet need to choose a distro. i have 4
intell p11 pc's and a lot of spare time :). im very intrested in learning as much code as i can so i dont want too much GUI. i was thinking of dabian sarge but very unsure. i have never even seen a linux pc o_O . if anyone has any advice it would be appreciated.
|
|
|
|