Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: Help: Iptables rules
@ 2004-01-15 23:13 Minh Cao
  2004-01-15 23:27 ` Antony Stone
  2004-01-16  2:04 ` Alexis
  0 siblings, 2 replies; 10+ messages in thread
From: Minh Cao @ 2004-01-15 23:13 UTC (permalink / raw)
  To: netfilter


Most of the net applications are working fine,  web browser, ftp, telnet,
ssh, ping, Cisco VPN.
I only have problem with VPN using PPTP protocol.

Please let me know which modules to get pptp to work.

Thanks
Minh




                                                                                                                           
                      Antony Stone                                                                                         
                      <Antony@Soft-Solutions.c        To:       netfilter@lists.netfilter.org                              
                      o.uk>                           cc:                                                                  
                      Sent by:                        Subject:  Re: Help: Iptables rules                                   
                      netfilter-admin@lists.ne                                                                             
                      tfilter.org                                                                                          
                                                                                                                           
                                                                                                                           
                      01/15/2004 01:53 PM                                                                                  
                                                                                                                           
                                                                                                                           




On Thursday 15 January 2004 7:57 pm, Minh Cao wrote:

> > 3. You say the above has not worked - how have you tested it?
>
> Yes, I tested
> I used VPN client, which connected to remote side. After connected, the
> password authentication is timeout in 2 minutes.

I really would recommend testing the setup with something a lot simpler
than a
VPN client :)

For example, a web browser, email, ssh, ftp - something which uses fairly
standard TCP connections, and is likely to work through NAT.

Depending on what sort of VPN you are trying to use, you may have
significant
problems getting it work (but then again you may not - as I say it depends
what sort of VPN it is).   For example, IPsec ESP (tunnel mode) is not too
difficult to get working, IPsec AH (transport mode) will not work across
NAT.
PPTP requires a special helper module, and there are other sorts of VPN
about
which I have no idea.

Start with something easy and work your way up to a VPN gradually.

> > 6. Did the machine work as a simple router before you tried adding
> > netfilter rules?
>
> Two NICs are on different subnet. Can I config as a router w/o using
> netfilter ?

Er, yes :)   You really should make sure the machine will route packets
properly before setting up netfilter, which (basically) blocks things.

It sounds as though you might benefit from reading the standard Linux
Networking HOWTO befoer tackling Oska Andreassen's netfilter tutorial which
I
recommended to you yesterday.

Regards,

Antony.

--
"Note: Windows 98, Windows 98SE and Windows 95 are not affected by [MS
Blaster].   However, these products are no longer supported.   Users of
these
products are strongly encouraged to upgrade to later versions."

(which *are* affected by MS Blaster...)

http://www.microsoft.com/security/security_bulletins/ms03-026.asp

                                                     Please reply to the
list;
                                                           please don't CC
me.









^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Help: Iptables rules
@ 2004-01-15 19:57 Minh Cao
  2004-01-15 20:11 ` Aldo S. Lagana
  2004-01-15 21:53 ` Antony Stone
  0 siblings, 2 replies; 10+ messages in thread
From: Minh Cao @ 2004-01-15 19:57 UTC (permalink / raw)
  To: netfilter








> Some questions:
>
> 1. Do you have packet forwarding turned on in the kernel (cat
> /proc/sys/net/ipv4/ip_forward)?

Yes, I have ip_forward

>
> 2. What are the default policies on your netfilter chains (iptables -L)?

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere           LOG level
warning

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

>
> 3. You say the above has not worked - how have you tested it?

Yes, I tested
I used VPN client, which connected to remote side. After connected, the
password authentication is timeout in 2 minutes.

Here is my network diagram

Internet --> CheckPoint Firewall --> (linux/NAT/IPtables/DHCP with 2 NICs)
--> DHCP/VPN client

To verify the packets at Checkpoint firewall, I connect VPN-client before
IPtables hosts (right after the Checkpoint firewall) , the VPN client
connected and password auth. w/o a problem.

>
> 4. Do packets get across the router in either direction (internal to
> external?
> external to internal)?

How do I check this ?
Telnet, ftp, ping all working

>
> 5. Have you read Oskar Andreasson's netfilter tutorial at
> http://iptables-tutorial.frozentux.net, referenced on the netfilter home
> page
>
http://www.netfilter.org/documentation/index.html#documentation-tutorials?

I will read

>
> 6. Did the machine work as a simple router before you tried adding
> netfilter
> rules?

Two NICs are on different subnet. Can I config as a router w/o using
netfilter ?


>
> Regards,
>
> Antony.

--
The difference between theory and practice is that in theory there is no
difference, whereas in practice there is.

                                                     Please reply to the
list;
                                                           please don't CC
me.









^ permalink raw reply	[flat|nested] 10+ messages in thread
* Help: Iptables rules
@ 2004-01-15  1:04 Minh Cao
  2004-01-15  1:24 ` Antony Stone
  0 siblings, 1 reply; 10+ messages in thread
From: Minh Cao @ 2004-01-15  1:04 UTC (permalink / raw)
  To: netfilter

Hi,

I am new to iptables.
Please help me to create a rules, which allows everything in and out both
interfaces.

What I have but not worked:
iptables -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT

iptalbles -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE


Thanks
Minh




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

end of thread, other threads:[~2004-01-16  2:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <OFE1656F2A.7FFED69B-ON88256E1C.000829BB-88256E1C.00088CCC@statsus.com>
2004-01-15  1:39 ` Help: Iptables rules Antony Stone
2004-01-15  1:41 ` Antony Stone
2004-01-15 23:13 Minh Cao
2004-01-15 23:27 ` Antony Stone
2004-01-16  2:04 ` Alexis
  -- strict thread matches above, loose matches on Subject: below --
2004-01-15 19:57 Minh Cao
2004-01-15 20:11 ` Aldo S. Lagana
2004-01-15 21:53 ` Antony Stone
2004-01-15  1:04 Minh Cao
2004-01-15  1:24 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox