![]() |
Re: tip: easy mini firewall
Quote:
ls: /etc/sysconfig/iptables: No such file or directory |
Re: tip: easy mini firewall
Quote:
|
Re: tip: easy mini firewall
right, i keep forgetting that debian doesnt follow the (same) standards that red-hat/fedora do.
what does this return: Code:
ls -l `which iptables` |
Re: tip: easy mini firewall
They're not standards ;)
/sbin/iptables on Maemo/Debian/Ubuntu. |
Re: tip: easy mini firewall
Quote:
Quote:
Code:
#!/bin/sh Code:
ssh -R 9999:localhost:22 -l remuser -p remport -N remote.site.com |
Re: tip: easy mini firewall
no, it should be
Code:
iptables -A INPUT -p all -s lo -j ACCEPT as far as the reverse port forwarding you do with ssh, i dont think that would be killed via iptables, because the traffic would be tunneled through ssh, not be a seperate connection. you would have to be listening for ssh on all interfaces too, not just the wlan0 interface. you sshd_config should have the following directive: Code:
ListenAddress 0.0.0.0 |
Re: tip: easy mini firewall
Quote:
Quote:
TX |
Re: tip: easy mini firewall
sorry, change the
-s lo to -i lo because lo is an interface, not really a source. |
Re: tip: easy mini firewall
since the ListenAddress is commented out with 0.0.0.0 as a value, that means its the default, and therefore the daemon listens on all interfaces.
Code:
netstat -na |grep 22 |
Re: tip: easy mini firewall
Quote:
Code:
~/bin$ netstat -an | grep :22 |
All times are GMT. The time now is 03:18. |
vBulletin® Version 3.8.8