All of lore.kernel.org
 help / color / mirror / Atom feed
* configuration question
@ 2005-05-19  6:23 Charles Holbrook
  2005-05-19  6:23 ` Philip Pokorny
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Charles Holbrook @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors

I have written a script that calls sensors parses the data and then
loads that data into a MIB tree with either ucd or net SNMP.  I have run
into a small problem with the via686a chipset though.  In all other
chipset configs you can set an inX even if that chipset doesn't
monitor(causing either a bad or null value to be returned)  However with
the via686a chipset I have not been able to figure out for the life of
me how to do that.  The reason I am trying to create placeholders for
all values that can be monitored is so that the same MIB structure would
apply across all systems.

EXAMPLE:
.1.3.6.1.4.1.2021.5822.20.101.20 is -5V on a system with the
w83627hf-isa-0290 chipset and even if it wasn't there I could add a line
for in6 creating that value.

.1.3.6.1.4.1.2021.5822.20.101.20 on a via686a motherboard will return a
fan RPM speed.

Because of this difference I cannot actually use this to get any usefull
data from my server cluster.  Having a mib return different values
depending on the chipset is a bad bad thing.  Is there a set command I
can use in the config script to force the via686a configuration to
insert a line for -12V or for that matter any place holder I want to
create?

Thanks in advance.



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Configuration question
@ 2010-03-04  8:58 Jean-Damien.Pogolotti
  0 siblings, 0 replies; 8+ messages in thread
From: Jean-Damien.Pogolotti @ 2010-03-04  8:58 UTC (permalink / raw)
  To: netfilter

Hi there,

I'm new to netfilter, so please excuse my dumb questions.. I'm working on a captive portal appliance and have some issues to understand how to alter the netfilter config to do what I expect :

- Eth0 connected to the internet (192.168.70.0/24)
- Eth1 connected to a wireless network (192.168.69.0/24)
- Eth2 connected to an enterprise network (172.19.58.128/26)

I'm already using this captive portal that is working, wireless clients are authenticated then have access to the internet. Domain authentication are done using the Eth2 interface to the enterprise LDAP catalog. I've not done this config and don't really understand how it works.

What I want to achieve may looks really simple for you : I need to have access to the appliance from the enterprise network (Eth2) on the ssh and https ports.

Here is the config file :



# Generated by iptables-save v1.4.5 on Wed Mar  3 12:34:48 2010
*raw
:PREROUTING ACCEPT [2728479:934194667]
:OUTPUT ACCEPT [1108062:571157557]
COMMIT
# Completed on Wed Mar  3 12:34:48 2010
# Generated by iptables-save v1.4.5 on Wed Mar  3 12:34:48 2010
*nat
:PREROUTING ACCEPT [1288:104586]
:POSTROUTING ACCEPT [6:578]
:OUTPUT ACCEPT [16:1243]
-A PREROUTING ! -d 192.168.69.1/32 -i tun0 -p tcp -m tcp --dport 80 -m state --state NEW -j ULOG --ulog-prefix "RULE Transfert2 -- ACCEPT "
-A PREROUTING ! -d 192.168.69.1/32 -i tun0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A PREROUTING -d 192.168.69.1/32 -i tun0 -p tcp -m tcp --dport 8080 -j ULOG --ulog-prefix "RULE direct-proxy -- DENY "
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Wed Mar  3 12:34:48 2010
# Generated by iptables-save v1.4.5 on Wed Mar  3 12:34:48 2010
*mangle
:PREROUTING ACCEPT [2728480:934194946]
:INPUT ACCEPT [1141791:637901737]
:FORWARD ACCEPT [483271:145278163]
:OUTPUT ACCEPT [1108063:571157645]
:POSTROUTING ACCEPT [1586481:716229937]
:tcfor - [0:0]
:tcout - [0:0]
:tcpost - [0:0]
:tcpre - [0:0]
-A PREROUTING -d 192.168.69.1/32 -i tun0 -p tcp -m tcp --dport 8080 -j MARK --set-xmark 0x1/0xffffffff
COMMIT
# Completed on Wed Mar  3 12:34:48 2010
# Generated by iptables-save v1.4.5 on Wed Mar  3 12:34:48 2010
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [685:203841]
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth1 -p udp -m udp --sport 68 --dport 67 -j ACCEPT
-A INPUT -i eth1 -j ULOG --ulog-prefix "RULE Protect1 -- REJECT "
-A INPUT -i eth1 -j REJECT --reject-with icmp-port-unreachable
-A INPUT ! -s 192.168.69.0/24 -i tun0 -j ULOG --ulog-prefix "RULE Antispoof1 -- DENY "
-A INPUT ! -s 192.168.69.0/24 -i tun0 -j DROP
-A INPUT -s 192.168.69.0/24 -i eth0 -j ULOG --ulog-prefix "RULE Antispoof2 -- DENY "
-A INPUT -s 192.168.69.0/24 -i eth0 -j DROP
-A INPUT -m addrtype --dst-type BROADCAST,MULTICAST -j DROP
-A INPUT -s 192.168.69.0/24 -i tun0 -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -s 192.168.69.0/24 -i tun0 -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -i tun0 -p tcp -m tcp --dport 3990 -j ACCEPT
-A INPUT -i tun0 -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -i tun0 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i tun0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth2 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i eth2 -p tcp -m tcp --dport ssh -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i tun0 -p tcp -m tcp --dport 8080 -m mark --mark 0x1 -j DROP
-A INPUT -i tun0 -p tcp -m tcp --dport 8080 --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j ACCEPT
-A INPUT -i tun0 -j ULOG --ulog-prefix "RULE rej-int -- REJECT "
-A INPUT -i eth0 -j ULOG --ulog-prefix "RULE rej-ext -- REJECT "
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i tun0 -p udp -m udp --dport 53 -j ACCEPT
-A FORWARD -i tun0 -m state --state NEW -j ULOG --ulog-prefix "RULE Transfert1 -- ACCEPT "
-A FORWARD -i tun0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o tun0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Wed Mar  3 12:34:48 2010


I've added those lines :

-A INPUT -i eth2 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i eth2 -p tcp -m tcp --dport ssh -j ACCEPT

..but no luck.

Can someone give me hand here?

Kind regards,
JD.

--------------------------------------------------------------------------
This message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Configuration question...
@ 2003-11-03  4:47 Martín
  2003-11-03  6:59 ` Edmund Turner
  0 siblings, 1 reply; 8+ messages in thread
From: Martín @ 2003-11-03  4:47 UTC (permalink / raw)
  To: netfilter

This is the situation:

I hace a linux machine, giving internet access to a win98 machine. The 
win98 machine has a soft wich does not accept NAT, so the soft does not 
work when has to connect to internet.
Linux: eth0 (wich is conected to the adsl modem > ppp0 ) 192.168.1.10
       eth1 (interface conected to the LAN, IP 192.168.2.1)

Win98: IP 192.168.2.5

What I need to do is: make the win98 software believe that it is connecting 
to a server service in the linux machine to port 10329, and that traffic 
has to be redirected to an external Ip in internet (the real server with 
the service in port 10329). And the, the traffic comeing fron that server 
has to be redirected to the win98 machine but with the source IP changed to 
192.168.2.1 (the internal IP of the linux)

Can tell me the comands to configure the linux and iptables to do this?
Thanks
       


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-04  8:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:23 configuration question Charles Holbrook
2005-05-19  6:23 ` Philip Pokorny
2005-05-19  6:24 ` Charles Holbrook
2005-05-19  6:24 ` Mark D. Studebaker 
  -- strict thread matches above, loose matches on Subject: below --
2010-03-04  8:58 Configuration question Jean-Damien.Pogolotti
2003-11-03  4:47 Martín
2003-11-03  6:59 ` Edmund Turner
2003-11-03  7:06   ` Edmund Turner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.